-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed: 'react/renderer/components/view/ViewProps.h' file not found #539
Comments
Getting the same error |
+1 |
They have an active PR, #538 I hope it get merged asap |
Getting the same error. |
Here is a patch using
|
You can use old architecture for the time being until PR is merged. |
i actually wanted to open a issue but i was very afraid because i never did and also thinking will this problem be solved or not. but such an active and amazing community . I don't know is it appropriate place to say it or not but i can't stop. LOVE you guys |
Which version should I use? i tried 4.11.1 got this error. |
Use the latest version and create a patch for it using patch-package library Use this code in the patch file |
which file ViewProps.h? |
Create a
Inside the Then, run |
Thank you so much! |
Still a failure! |
@usemain The temporary fix works for me, and I was able to build Android successfully. I also found that there are a couple of libraries that have the same error. Are you using react-native-screens or react-native-gesture-handler? For react-native-screens, you may need to update the version to 4.0.0-beta.13 And for the react-native-gesture-handler, update the version to 2.20.2 |
Hi guys, facing issues with initial RN-CLI project, I also followed @craiganderson-iotv advice, Packages: Steps:
Output: Two errors |
@erie-e9 Try upgrading For react-native-screens you will have to use version |
getting same error |
+1 |
FIY |
this didn't work for me, still encounter this error after patch:
|
I am already using the latest versions, in my first comment I added the used packages versions. |
+1 |
Duplicate of #541, should be fixed now. |
@craiganderson-iotv Unfortunaltely the patch didnt work. But thank you for the information and effort. |
@sujathasperi2022 just share the error log, multiple libraries are throwing same error at the time As I can see the culprit is react-native-screen because you are using stable version which is giving same error as this package, just do Also don't forget to share the error |
the problem is "react-native-safe-area-context": "4.12.0", you must upgrade this to "4.12.0" and it worked. |
the problem is "react-native-safe-area-context": "4.12.0", you must upgrade this to "4.12.0" and it worked. |
???? |
I have the same error. Did anyone solve it? |
I have the same error with |
Issue
I am going to upgrade my personal React Native project to version 0.76.0 to conduct a health check and see if most of the common libraries are compatible with the latest version. Found out there is an issue when building the Android App
Error Message
In file included from node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewState.h:3:
node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h:12:10: fatal error: 'react/renderer/components/view/ViewProps.h' file not found
#include <react/renderer/components/view/ViewProps.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.cpp:1:
In file included from node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.h:4:
node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
#include <react/renderer/components/view/ViewEventEmitter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dependencies
"react-native": "0.76.0",
"react-native-safe-area-context": "^4.11.1"
The text was updated successfully, but these errors were encountered: