diff --git a/index.js b/index.js index 869f483..38adafc 100644 --- a/index.js +++ b/index.js @@ -3,10 +3,11 @@ */ import React, { - Component, - PropTypes + Component } from 'react'; +import PropTypes from 'prop-types'; + import { StyleSheet, View, @@ -41,7 +42,7 @@ class PopContent extends Component{ let tipContent = []; if(content instanceof Array){ content.forEach((item, index, arr) => { - if(index > 9){ + if(index > 9){ return; } item && ( tipContent[index] = ({item}) ); diff --git a/package.json b/package.json index f252559..054eb85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-popup", - "version": "0.6.1", + "version": "0.6.2", "description": "popup for react-native", "main": "index.js", "scripts": { @@ -25,5 +25,8 @@ "bugs": { "url": "https://github.com/beefe/react-native-popup/issues" }, - "homepage": "https://github.com/beefe/react-native-popup#readme" + "homepage": "https://github.com/beefe/react-native-popup#readme", + "dependencies": { + "prop-types": "^15.5.10" + } }