Replace PropTypes from react with form prop-types package

This commit is contained in:
Timur Gibadullin 2017-07-13 12:19:44 +03:00
parent 3ce9e10c2c
commit fe074bb62b
3 changed files with 8 additions and 3 deletions

View File

@ -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"
}
}

View File

@ -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';

View File

@ -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';