0.0.5 • Published 3 years ago
react-native-full-loading v0.0.5
react-native-full-loading
A simple React component that works for loading.
Demo
Getting Started
- First, You need to install It, just like You would do with any NPM package:
npm i react-native-full-loading
2.Then, You need to import the library component within your own component
import React from 'react'
import FullLoading from 'react-native-full-loading'
3.You can now start using the full-loading components!
export default function YourComponent(){
const [visible, setVisible] = React.useState(false);
if(...){
setVisible(true);
}else{
setVisible(false);
}
return(
...
<FullLoading visible={visible} />
);
}
Props
Parameters | Default Value | Values |
---|---|---|
backgroundColor | rgba(0, 0, 0, 0.4) | Colorsrgb, hex, string |
colorIndicator | #FFF | Colorsrgb, hex, string |
sizeIndicator | large | large, small |
colorText | #FFF | Colorsrgb, hex, string |
text | Loading | String |
visible | false | bool - Required |