Fix ViewPropTypes
alejodiloreto opened this issue Β· comments
Hi!
Firstly, thanks for your work on this project!
Today I used patch-package to patch react-native-camera@4.2.1
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-camera/src/RNCamera.js b/node_modules/react-native-camera/src/RNCamera.js
index b7a271a..6dd3123 100644
--- a/node_modules/react-native-camera/src/RNCamera.js
+++ b/node_modules/react-native-camera/src/RNCamera.js
@@ -1,11 +1,11 @@
// @flow
import React from 'react';
import PropTypes from 'prop-types';
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
import {
findNodeHandle,
Platform,
NativeModules,
- ViewPropTypes,
requireNativeComponent,
View,
ActivityIndicator,
This issue body was partially generated by patch-package.
You'd also need to add the package to package.json.