Skip to content

Commit e1c1306

Browse files
author
Dustin Savery
committed
Adding new prop-types library
1 parent 8559daf commit e1c1306

8 files changed

+15
-7
lines changed

package.json

Lines changed: 1 addition & 0 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": {

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)