Skip to content

Commit fe074bb

Browse files
committed
Replace PropTypes from react with form prop-types package
1 parent 3ce9e10 commit fe074bb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
"bugs": {
1818
"url": "https://github.com/gitim/react-native-sortable-list/issues"
1919
},
20-
"homepage": "https://github.com/gitim/react-native-sortable-list"
20+
"homepage": "https://github.com/gitim/react-native-sortable-list",
21+
"dependencies": {
22+
"prop-types": "^15.5.10"
23+
}
2124
}

src/Row.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
23
import {Animated, PanResponder, StyleSheet} from 'react-native';
34
import {shallowEqual} from './utils';
45

src/SortableList.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
23
import {ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native';
34
import {shallowEqual, swapArrayElements} from './utils';
45
import Row from './Row';

0 commit comments

Comments
 (0)