react-native-sk-loader
v1.0.2
Published
Component that wrap ProgressBarAndroid in android and ActivityIndicatorIOS in iOS, is used to indicate that the app is loading
Downloads
4
Maintainers
Readme
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 = require('react-native');
var {
AppRegistry,
View,
StyleSheet
} = React;
var SKLoader = require('react-native-sk-loader');
var test = React.createClass({
render: function(){
return (
<SKLoader />
)
}
});
- If you want to know more, just see the source code, is very simple