Skip to content

Commit afc23a0

Browse files
committed
Add external prop-types module because react removed prop-types
1 parent 124a989 commit afc23a0

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

components/NavBarContainer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import {
34
BackAndroid,
45
Platform,

components/NavBarContent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import {
34
Animated,
45
Easing,

components/NavButton.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import {
34
StyleSheet,
45
Text,

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import {
34
StyleSheet,
45
Navigator,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
},
3939
"peerDependencies": {
4040
"react": "*",
41-
"react-native": "*"
41+
"react-native": "*",
42+
"prop-types": "*"
4243
},
4344
"devDependencies": {
4445
"babel-eslint": "^6.0.4",

0 commit comments

Comments
 (0)