diff --git a/CountDownText.js b/CountDownText.js index 47a59ad..a5690e6 100644 --- a/CountDownText.js +++ b/CountDownText.js @@ -12,14 +12,14 @@ this.refs.countDownText.end(); 'use strict' -var React = require('react-native'); +import React from 'react' -var { +import { StyleSheet, - Text, -} = React; + Text +} from 'react-native'; -var update = React.addons.update, +var update = require('react-addons-update'), countDown = require('./countDown'); var CountDownText = React.createClass({ diff --git a/package.json b/package.json index 6a6f97e..e412284 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,8 @@ "bugs": { "url": "https://github.com/shigebeyond/react-native-sk-countdown/issues" }, - "homepage": "https://github.com/shigebeyond/react-native-sk-countdown#readme" + "homepage": "https://github.com/shigebeyond/react-native-sk-countdown#readme", + "dependencies": { + "react-addons-update": "^15.6.2" + } }