Support React 16 PropTypes removal (#769)

This commit is contained in:
Eric Dobbertin
2017-08-03 12:24:11 -07:00
committed by Zack Story
parent be969cdc57
commit e2c2cff4a0
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
DeviceEventEmitter, // android
NativeAppEventEmitter, // ios
@@ -42,7 +43,7 @@ function convertNativeProps(props) {
if (typeof props.captureMode === 'string') {
newProps.captureMode = Camera.constants.CaptureMode[props.captureMode];
}
if (typeof props.captureTarget === 'string') {
newProps.captureTarget = Camera.constants.CaptureTarget[props.captureTarget];
}
+2 -1
View File
@@ -20,7 +20,8 @@
"barcode"
],
"dependencies": {
"opencollective": "^1.0.3"
"opencollective": "^1.0.3",
"prop-types": "^15.5.10"
},
"collective": {
"type": "opencollective",