From fe074bb62bfa33fa7f33d277c99e41e41c7afeb1 Mon Sep 17 00:00:00 2001 From: Timur Gibadullin Date: Thu, 13 Jul 2017 12:19:44 +0300 Subject: [PATCH] Replace PropTypes from react with form prop-types package --- package.json | 5 ++++- src/Row.js | 3 ++- src/SortableList.js | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 20872f5..4ead95d 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,8 @@ "bugs": { "url": "https://github.com/gitim/react-native-sortable-list/issues" }, - "homepage": "https://github.com/gitim/react-native-sortable-list" + "homepage": "https://github.com/gitim/react-native-sortable-list", + "dependencies": { + "prop-types": "^15.5.10" + } } diff --git a/src/Row.js b/src/Row.js index 04f4444..3bad72a 100644 --- a/src/Row.js +++ b/src/Row.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from 'react'; +import React, {Component} from 'react'; +import PropTypes from 'prop-types'; import {Animated, PanResponder, StyleSheet} from 'react-native'; import {shallowEqual} from './utils'; diff --git a/src/SortableList.js b/src/SortableList.js index 8a938a8..030f8a5 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from 'react'; +import React, {Component} from 'react'; +import PropTypes from 'prop-types'; import {ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native'; import {shallowEqual, swapArrayElements} from './utils'; import Row from './Row';