mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-30 21:21:06 +00:00
Support React 16 PropTypes removal (#769)
This commit is contained in:
committed by
Zack Story
parent
be969cdc57
commit
e2c2cff4a0
@@ -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
@@ -20,7 +20,8 @@
|
||||
"barcode"
|
||||
],
|
||||
"dependencies": {
|
||||
"opencollective": "^1.0.3"
|
||||
"opencollective": "^1.0.3",
|
||||
"prop-types": "^15.5.10"
|
||||
},
|
||||
"collective": {
|
||||
"type": "opencollective",
|
||||
|
||||
Reference in New Issue
Block a user