From c19ac8de1a4b3f5edf5981035cac436a6cb96010 Mon Sep 17 00:00:00 2001 From: Elie Teyssedou Date: Fri, 1 Sep 2017 12:21:25 +0200 Subject: [PATCH 1/2] Fix proptype breaking change of React V16 --- index.js | 7 ++++--- package.json | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) 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..781fb09 100644 --- a/package.json +++ b/package.json @@ -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" + } } From 5f729e21fa4c0bb2b829144647d3eafa9f1a9c3c Mon Sep 17 00:00:00 2001 From: Elie Teyssedou Date: Fri, 1 Sep 2017 12:22:22 +0200 Subject: [PATCH 2/2] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 781fb09..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": {