Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 1 deletion
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‎

Lines changed: 2 additions & 1 deletion
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /