diff --git a/lib/Toast.js b/lib/Toast.js index 396cb93..0a93bd2 100644 --- a/lib/Toast.js +++ b/lib/Toast.js @@ -1,7 +1,5 @@ -import React, { - Component, - PropTypes -} from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { View } from 'react-native'; diff --git a/lib/ToastContainer.js b/lib/ToastContainer.js index 631b88c..1ca2785 100644 --- a/lib/ToastContainer.js +++ b/lib/ToastContainer.js @@ -1,7 +1,5 @@ -import React, { - Component, - PropTypes -} from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { StyleSheet, View, @@ -69,7 +67,7 @@ class ToastContainer extends Component { static propTypes = { ...View.propTypes, - containerStyle: View.propTypes.style, + containerStyle: PropTypes.style, duration: PropTypes.number, visible: PropTypes.bool, position: PropTypes.number, @@ -200,7 +198,12 @@ class ToastContainer extends Component { return (this.state.visible || this._animating) ?