react-native-sk-loader
What is it
react-native-sk-loader is a component that wrap ProgressBarAndroid in android and ActivityIndicatorIOS in iOS, is used to indicate that the app is loading
It’s very simple, I write it just for loading compatibility in different platform.
How to use it
-
npm install react-native-sk-loader@latest --save
-
Write this in index.ios.js / index.android.js
'use strict'; var React = ;var AppRegistry View StyleSheet = React;var SKLoader = ; var test = React;
- If you want to know more, just see the source code, is very simple