Skip to content

Commit 23c790e

Browse files
committed
📦 Migrate to new prop-types package
Old way was deprecated in RN v0.45
1 parent 24f1930 commit 23c790e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"react-native": ">=0.28"
5151
},
5252
"dependencies": {
53-
"immutable": ">=3.8"
53+
"immutable": ">=3.8",
54+
"prop-types": "^15.5.10"
5455
},
5556
"devDependencies": {
5657
"babel-cli": "6.24.1",

src/EmptyListView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Immutable from 'immutable';
2-
import React, { PureComponent, PropTypes } from 'react';
2+
import PropTypes from 'prop-types';
3+
import React, { PureComponent } from 'react';
34
import { View, Text, ListView, StyleSheet } from 'react-native';
45

56
import ImmutableListView from './ImmutableListView';

src/ImmutableListView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Immutable from 'immutable';
2-
import React, { PureComponent, PropTypes } from 'react';
2+
import PropTypes from 'prop-types';
3+
import React, { PureComponent } from 'react';
34
import { ListView, InteractionManager } from 'react-native';
45

56
import utils from './utils';

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@ promise@^7.1.1:
35993599
dependencies:
36003600
asap "~2.0.3"
36013601

3602-
prop-types@^15.5.6, prop-types@^15.5.8:
3602+
prop-types@^15.5.10, prop-types@^15.5.6, prop-types@^15.5.8:
36033603
version "15.5.10"
36043604
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
36053605
dependencies:

0 commit comments

Comments
 (0)