Skip to content

Commit

Permalink
Migrate to separate PropTypes library.
Browse files Browse the repository at this point in the history
- Add dependency.
- Import from prop-types instead of react.
  • Loading branch information
joshuapinter committed Jun 22, 2018
1 parent c453bcb commit fdd91f9
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.2"
}
}
3 changes: 2 additions & 1 deletion src/Row.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component, PropTypes} from 'react';
import React, {Component} from 'react';
import {Animated, PanResponder, StyleSheet} from 'react-native';
import PropTypes from 'prop-types';
import {shallowEqual} from './utils';

const ACTIVATION_DELAY = 200;
Expand Down
3 changes: 2 additions & 1 deletion src/SortableList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component, PropTypes} from 'react';
import React, {Component} from 'react';
import {Animated, ScrollView, View, StyleSheet, Platform} from 'react-native';
import PropTypes from 'prop-types';
import {shallowEqual, swapArrayElements} from './utils';
import Row from './Row';

Expand Down

0 comments on commit fdd91f9

Please sign in to comment.