Simple loading spinner that use React-Native ProgressBarAndroid or ActivityIndicatorIOS depending of the platform.
var React = require('react-native');
var {
View,
} = React;
var GiftedSpinner = require('react-native-gifted-spinner');
var Example = React.createClass({
render() {
return (
<View style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}>
<GiftedSpinner />
</View>
);
}
});
npm install react-native-gifted-spinner --save
Feel free to ask me questions on Twitter @FaridSafi !