Skip to content

Commit 97db349

Browse files
committed
Fixed proptypes issue on newer versions of React Native
1 parent 68c298c commit 97db349

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.js

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},
1212
"dependencies": {
13+
"prop-types": "^15.6.0",
1314
"react-native-circular-progress": "0.0.8",
1415
"react-native-vector-icons": "3.0.0"
1516
},

0 commit comments

Comments
 (0)