react-native-gifted-spinner
Advanced tools
Comparing version 0.0.4 to 0.0.5
'use strict' | ||
var React = require('react'); | ||
import React, { Component, PropTypes } from 'react'; | ||
import { View, ProgressBarAndroid, Platform, ActivityIndicator } from 'react-native'; | ||
var { | ||
View, | ||
ActivityIndicatorIOS, | ||
ProgressBarAndroid, | ||
Platform | ||
} = require('react-native'); | ||
var GiftedSpinner = React.createClass({ | ||
_getSpinner() { | ||
export default class GiftedSpinner extends Component { | ||
_getSpinner = () => { | ||
if (Platform.OS === 'android') { | ||
@@ -27,3 +20,3 @@ return ( | ||
return ( | ||
<ActivityIndicatorIOS | ||
<ActivityIndicator | ||
animating={true} | ||
@@ -35,3 +28,3 @@ size="small" | ||
} | ||
}, | ||
} | ||
@@ -44,7 +37,3 @@ render() { | ||
); | ||
}, | ||
}); | ||
module.exports = GiftedSpinner; | ||
} | ||
} |
{ | ||
"name": "react-native-gifted-spinner", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Simple loading spinner that use React-Native ProgressBarAndroid or ActivityIndicatorIOS depending of the platform", | ||
@@ -5,0 +5,0 @@ "main": "GiftedSpinner.js", |
# react-native-gifted-spinner | ||
#### This package is now deprecated. [ActivityIndicator](https://facebook.github.io/react-native/docs/activityindicator.html) should be used instead | ||
Simple loading spinner that use React-Native ProgressBarAndroid or ActivityIndicatorIOS depending of the platform. | ||
@@ -42,2 +46,2 @@ | ||
Feel free to ask me questions on Twitter [@FaridSafi](https://www.twitter.com/FaridSafi) ! | ||
Feel free to ask me questions on Twitter [@FaridSafi](https://www.twitter.com/FaridSafi) ! |
3554
47
32