Skip to content

Commit 0c8b883

Browse files
Dustin Saveryfrostney
authored andcommitted
Adding new prop-types library (#11)
1 parent 8559daf commit 0c8b883

8 files changed

+17
-9
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
},
5656
"homepage": "https://github.com/frostney/react-intl-native#readme",
5757
"dependencies": {
58+
"prop-types": "^15.6.0",
5859
"react-intl": "^2.1.2"
5960
},
6061
"devDependencies": {
@@ -77,9 +78,9 @@
7778
"in-publish": "^2.0.0",
7879
"jsdom": "^9.12.0",
7980
"nyc": "^6.4.0",
80-
"react": "^0.14.8",
81+
"react": "^0.14.9",
8182
"react-addons-test-utils": "^0.14.8",
82-
"react-dom": "^0.14.8",
83+
"react-dom": "^0.14.9",
8384
"react-native": "^0.25.1",
8485
"rimraf": "^2.5.2",
8586
"rollup-babel-lib-bundler": "^2.5.5"

src/FormattedDate.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

src/FormattedHTMLMessage.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

src/FormattedMessage.js

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

src/FormattedNumber.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

src/FormattedPlural.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

src/FormattedRelative.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

src/FormattedTime.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 { Text } from 'react-native';
34
import Intl from 'react-intl';
45

0 commit comments

Comments
 (0)