- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 550
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
[3.18.1] requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager #1614
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
same issue after "react-native start --reset-cache" also, i can't build android |
same here. But using npm. Screens version 3.18.1 React Native version 0.66.4 Platforms iOS Workflow React Native (without Expo) Build type Debug mode Device Simulator Device model iPhone 13 |
Since the downgrading to |
Same issue for me. It does not install Downgrading to v3.18.0 works. |
On my project downgrading to v3.18.0 does not work. Still get the
message when building the app. |
@n3tflex did you try to run metro with |
@n3tflex Maybe check your |
Hi all, only change 3.18.1 introduced was to add I'll dive into the problem and let you know asap whats going on
It was only bumped in |
@kkafar thanks, you're right about the |
yes, I have deleted the |
@n3tflex as a last measure, delete the cache of npm, sorry to ask again since it was not clear on your response, did you run the metro bunder with |
Steps I have done:
And I still get same warning. Thanks for your help! |
You have to pin this version In case you are wondering what the signs mean: |
I'm testing fix by my self now, but would appreciate if any of you would confirm, that this resolves the issue: #1615 Install "react-native-screens": "software-mansion/react-native-screens#49cc61e1fa9926a671d32bbb634a2c43c999e122" Update: the branch was deleted, before 3.18.2 is released please use current main: "react-native-screens": "software-mansion/react-native-screens#0f684a76276709df927dab116f7addcb9b8c2a6b" |
I tried it in my project at it works like charm! Thank you for the quick reaction on this. |
Sorry my fault. After pinning the package the warning ist finally gone! Thanks! |
Thank you @Letty! I'll have 3.18.2 released with this patch soon! |
## Description Fixes #1614 #1611 added `react-native.config.js` file to the library which uses features supported since `@react-native-cli@9.0.0` thus causing library fail to link while on Paper with React Native < 0.70. This fix is borrowed from `react-native-safe-area-context`. ## Changes Added check for `@react-native-community/cli-platform-android` version in `react-native.config.js`. ## Test code and steps to reproduce -- ## Checklist - [x] Ensured that CI passes
I also fixed this issue using "react-native-screens": "3.18.0", |
Same error with react-native 0.64.3 .. downgrade to 3.18.0 and works :) Waiting for new release 💯 |
@ToniNikolaev23, |
@kkafar no good deed unpunished ;-). Thanks for react-native-screens and we have 3.18.0 until things are sorted. Cheers |
Hi @SanjanaTailor, I would love you confirmed this, because if it is not the case (id does not work for you on 3.18.2), it implies that there are some additional issues in release configuration. |
@kkafar - I think I have tried it but did not resolve the issue. what can be additional release configuration. Anything required from my end please let me know. |
@kkafar - npm ERR! notarget No matching version found for react-native-screens@3.18.2. this issue is happening. |
I have the same problem, these are my dependencies: Should I remove the caret sign "^"on every dependency |
I just find other way to solve it
Note: I just try it in an android environment and it's worked |
i also got it same error but I did it npm i then is working fine and another thing is check internet conection |
same issue on Android, using expo and npm in eas release build. dev works fine. |
I'm still facing same error. How to resolve it ? |
For that error
I hope this help you 👍 |
guys why there´s no any clear fix for this ? it looks like all are trowing stuff against the wall to see if it sticks.. the feature owner should come up with a solution asap! i´m using expo native react and same error here! |
Same here!
|
|
npm run ios --reset-cache |
This error happens while installing react-native-screen & react-native-safe-area-view packages. I suggest installing them one by one rather than with a single command. Also, the possible solution is already mentioned above. I'm just modifying it as:
Hope this will be help you all. |
i encountered the same issue ater Editing MainActivity.java file which is located in android/app/src/main/java//MainActivity.java while following react-navigation-getting-started-guide you need to stop the metro-server and then, run react-native run-android |
I solved this error by changing the version to 3.3.2 and using yarn instead of npm. Here are the commands I followed: yarn add nativewind then restart the app |
Anyone have other solutions? I have tried all of the above steps and nothing has worked for me :( I am doing it on iOS. Here is my package.json; { |
I fixed this, turned out I was using Native Stack Navigator instead of Stack Navigator which was causing the issue. Steps - also found at https://reactnavigation.org/docs/stack-navigator/#installation:
In my AppNavigator.js I changed my import from |
I fixed this by adding I run the command then rebuild the apk using eas |
Hi @Mary-Grigoryan, I think this is not right solution, as the Stack Navigator does not fully embrace functionalities of react-native-screens (in particular, Stack is not being generated on the native side). Have you tried to reset cache of Metro Bundler when this error has occurred ( |
Try DOWNGRADE Node version. In my case, I use RN 0.68.2, and when run app i have this crush "[requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager]" on both platform (android, ios). |
Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager. This error is located at:
|
Hi @tboba, I suspected too that it wouldnt be the right solution. I have changed it back anyway too Native Stack Navigator instead of Stack Navigator. I still have that error anyway. Also it is a bare React project yes. And i have ran |
So this is how I effectively tackled this:
The full piece can be found here: https://dev.to/ambasseugene/how-to-resolve-requirenativecomponent-rnsscreenstackheaderconfig-was-not-found-in-the-uimanager-in-react-native-17dh |
I am still facing this issue. I tried all the solutions mentioned in this thread nothing is working. IOS is working fine. I am facing issue in Android. its building but crashing on launch.
can anyone please help. |
@sujaya-nd I do not know what commit has is this, but definitely try using |
Description
After upgrading to 3.18.1 it throwed:
Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager.
it seems that the introduction of
react-native-config.js
won't allow the package to be bundled sincemetro
throws:warn Package react-native-screens has been ignored because it contains invalid configuration. Reason: "dependency.platforms.android.componentDescriptors" is not allowed
ps. I'm using
yarn 3.2.4
Steps to reproduce
Snack or a link to a repository
no snack
Screens version
3.18.1
React Native version
0.68.3
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
iPhone 13
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: