Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

ViewPropTypes Issue resolved #3453

Open
Hassan-Naeem-code opened this issue Nov 24, 2022 · 1 comment
Open

ViewPropTypes Issue resolved #3453

Hassan-Naeem-code opened this issue Nov 24, 2022 · 1 comment

Comments

@Hassan-Naeem-code
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch [email protected] 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..bc4314e 100644
--- a/node_modules/react-native-camera/src/RNCamera.js
+++ b/node_modules/react-native-camera/src/RNCamera.js
@@ -5,7 +5,6 @@ import {
   findNodeHandle,
   Platform,
   NativeModules,
-  ViewPropTypes,
   requireNativeComponent,
   View,
   ActivityIndicator,
@@ -13,6 +12,7 @@ import {
   StyleSheet,
   PermissionsAndroid,
 } from 'react-native';
+import {ViewPropTypes} from 'deprecated-react-native-prop-types';
 
 import type { FaceFeature } from './FaceDetector';
 

This issue body was partially generated by patch-package.

@zichil
Copy link

zichil commented Dec 28, 2022

It works for me! thx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants