Loader component is used to display a loading indicator while content is being fetched or processed. It provides visual feedback to users during asynchronous operations.
Props
Properties
Usage
Below is an example of how to use theLoader component:
Styles
TheLoader component utilizes the following style properties:
loaderContainer: The main wrapper for the loader.
Animations
TheLoader component uses the ActivityIndicator from React Native, which includes built-in animations for the loading spinner.
Usage Notes
- The
sizeprop allows customization of the loader’s size. Ensure to choose an appropriate size based on the context in which the loader is used. - The loader’s color is determined by the current theme, utilizing the
useThemehook to adapt its appearance based on the selected theme mode.