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 afc23a0

Browse files
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)

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