diff --git a/GiftedSpinner.js b/GiftedSpinner.js
index e42b856..eb6b859 100644
--- a/GiftedSpinner.js
+++ b/GiftedSpinner.js
@@ -1,20 +1,20 @@
'use strict'
-var React = require('react-native');
-var {
+import React, { Component } from 'react';
+import {
View,
ActivityIndicatorIOS,
ProgressBarAndroid,
- Platform
-} = React;
+ Platform,
+} from 'react-native';
+
+export default class GiftedSpinner extends Component {
-var GiftedSpinner = React.createClass({
-
_getSpinner() {
if (Platform.OS === 'android') {
return (
-
);
}
- },
-
+ }
+
render() {
return (
{this._getSpinner()}
);
- },
-
-});
+ }
+};
-module.exports = GiftedSpinner;
\ No newline at end of file