4
Placeholder/Loading for React Native
source link: https://reactnativeexample.com/placeholder-loading-for-react-native/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
React Native Fade Loading
Placeholder/Loading for React Native.
Installation
npm install --save react-native-fade-loading
yarn add react-native-fade-loading
Usage
import { FadeLoading } from 'react-native-fade-loading';
// ...
<FadeLoading primaryColor="gray" secondaryColor="lightgray" duration={5000} />;
Props
Prop Description Type Defaultstyle
Container Style
Style
{padding: 5,borderRadius: 4}
visible
Visible child components
boolean
true
primaryColor
Main color of fade loading
string
'lightgray'
secondaryColor
Secondary color of fade loading
string
'whitesmoke'
duration
Duration of fade loading (ms)
number
5000
animated
Animation enable value for component
boolean
true
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
GitHub
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK