Loader component
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.
Prop | Type | Description |
---|---|---|
size | 'small' , 'large' | The size of the loader, which can be either ‘small’ or ‘large’. Defaults to ‘small’. |
Loader
component:
Loader
component utilizes the following style properties:
loaderContainer
: The main wrapper for the loader.Loader
component uses the ActivityIndicator
from React Native, which includes built-in animations for the loading spinner.
size
prop allows customization of the loader’s size. Ensure to choose an appropriate size based on the context in which the loader is used.useTheme
hook to adapt its appearance based on the selected theme mode.