Execution failed for JetifyTransform in react native - react-native

I upgraded the react and react-native for my project. After upgrading the project I got the error from react-native-reanimated. I went through the official website for react-native-reanimated still dont know why I got this error.
Failed to transform react-native-reanimated-65-hermes.aar (project :react-native-reanimated) to match attributes {artifactType=android-manifest}.
"react": "17.0.2",
"react-native": "0.65.0"
Thanks!!

Related

How to debug react-native app using reanimated and firebase

native developers. I have been developing and maintaining a react-native app for the past four years now. Now I have come to a point where I no longer know a way to debug my app. I am using recent versions of both react-native-reanimated and #react-native-firebase for stability and feature requirements. Both of these libraries have limitations on debugging.
react-native-reanimated uses Turbo Modules and breaks debugging react-native with chrome tools and the great react-native-debugger.
#react-native-firebase above v15.x now requires us to have use_frameworks! in our Podfile which breaks Flipper debugging.
Without these options for debugging, what is left? Is anyone in the same situation and has a solution to debug their react-native app and view their redux state?
I appreciate the help.
My current versions in my app:
"#react-native-firebase/app": "15.5.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-reanimated": "^2.13.0",

react native for web: expo-camera failed to scan qrcode

I am developing a web app with react native for web, and I want to scan qrcode but it does not work, without errors.
I put the codes on snack, ran it on mobile with Expo Go, it worked perfectly. However, when I published it on github web, and open it with mobile browser (iOS Safari), the camera worked normally, but no qrcode was read (just no reponse when I put a qrcode inside).
Code info:
I referred sample code on expo-camera and expo-barcode-scanner. Since expo-barcode-scanner does not support web, I imported expo-camera only.
Version info:
"expo": "~42.0.1"
"expo-camera": "~11.2.2"
"expo-status-bar": "~1.0.4"
"react": "16.13.1"
"react-dom": "16.13.1"
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz"
"react-native-web": "~0.13.12"
Also, I checked this issue, and tried the followings:
open /node_modules/expo-camera/package.json, set "#koale/useworker" to "4.0.1"
run npm i under root dir
open /node_modules/expo-camera/node_modules/#koale/useworker/package.json, confirmed that the version is 4.0.1
But it still did not work.
I feel confused now, did I take wrong solutions? Is there any workarounds?
Any suggestions would be appreciated.

The expo sdk requires expo to run. it appears the native expo modules are unavailable

I am getting a red screen with the error "the expo SDK requires expo to run. it appears the native expo modules are unavailable"
I have changed
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
to
"react-native": "0.57.5",

Cannot Convert Existing React Native to Expo: error with nativeVersion.major

Just downloaded the newest version of Expo XDE(2.20.1) and trying to convert an existing react native project into it. I followed precisely these steps, and when opening the app in Expo client on a real device, I got an error saying:
undefined is not an object (evaluating 'nativeVersion.major')
The problem happens both on Android and iOS.
Seems expo has a strict requirement of react/react-native versions, but unfortunately, I cannot find the version requirement list.
My current dependencies (which are quite up-to-date) are:
"react": "16.0.0",
"react-native": "0.49.3"
So, does this error indeed came from version conflicts? And if so, how do I solve the problem?
Your JS dependencies need to match the native code. With Expo SDK 21, which is based off of React Native 0.48, you can either use (recommended):
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz",
or:
"react": "16.0.0-alpha.12",
"react-native": "^0.48.4",
It's important you are careful with the versions when you update your dependencies. The upcoming React Native 0.49 (supported with Expo SDK 22) needs to use React 16.0.0-beta.5.
It might be easiest to create a new Expo project from scratch, then copy over your components. I've done this several times myself, and it's far easier than fighting whatever edge condition has affected you.
Remove your iOS build (./app/ios/build) folder and re-build.

scrollview has no proptype for native prop RCTScrollView.overScrollMode of native type string

I am getting bellow issue, is any one have idea about this
scrollview has no proptype for native prop RCTScrollView.overScrollMode of native type string if you havent changed this prop yourself this usually means that your versions of the native code and javascript code are out of sync
It's maybe your dependent package version are mismatch, I upgrade my dependencies to the latest, now it works at those versions.
"expo": "^21.0.2",
"native-base": "^2.3.2",
"react": "16.0.0-alpha.12",
"react-native": "^0.48.4",
"react-navigation": "^1.0.0-beta.12"
That's a tricky one. Depends on what package manager you have.
You'll have to upgrade react-native.
react-native upgrade if using react-scripts
yarn upgrade react-native if using the latest create-react-app tools as of August, 2017.
Found the possible solution!
1. Bump expo version in package.json to 21.0.2
2. Bump react-native version in package.json to 0.48.4
3. Remove node_modules
4. npm install or yarn install
5. Change sdk version in app.json to 21.0.0
...
ScrollView is working AGAIN! :)