react-native-screens: [3.18.1] requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager
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
- Install/Upgrade to 3.18.1
- pod install
- build app
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 51 (8 by maintainers)
Thank you @Letty! I’ll have 3.18.2 released with this patch soon!
Steps I have done:
package.json to
"react-native-screens": "^3.18.0"
node_modules
&package-lock.json
Pods
&Podfile.lock
npm cache clean --force
npm install
pod install
react-native run-ios --reset-cache
And I still get same warning.
Thanks for your help!
I tried it in my project at it works like charm! Thank you for the quick reaction on this. (My RN version is 0.68.4)
ASAP
is a very hard word. Please remember this is open source work. So people are investing time doing cool stuff mostly for free. 😃. I’m sure a better word choice goes a long way. ThanksIt is not working for me ^3.18.2 is not working.
@ToniNikolaev23, #1615 (solution to this issue) causes issues with Example applications in the repository so it is holding release for now, but I’m working on it.
You have to pin this version
"react-native-screens": "3.18.0"
In case you are wondering what the signs mean: https://stackoverflow.com/questions/22137778/what-does-mean-in-package-json-versioning
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 yarn add --dev tailwindcss@3.3.2
then restart the app
3.18.2 is released, the issue should be resolved.
In case of any problems just tag me here
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
as follows in your package.json:Update: the branch was deleted, before 3.18.2 is released please use current main:
On my project downgrading to v3.18.0 does not work. Still get the
Package react-native-screens has been ignored because it contains invalid configuration. Reason: "dependency.platforms.android.componentDescriptors" is not allowed
message when building the app.
Since the
react-native-safe-area-context
was bumped to4.4.1
I think3.18.1
is no longer supported on react-native <0.70
.downgrading to
3.18.0
works just fine.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
@kkafar no good deed unpunished 😉. Thanks for react-native-screens and we have 3.18.0 until things are sorted. Cheers
Sorry my fault. After pinning the package the warning ist finally gone! Thanks!
Hi all, only change 3.18.1 introduced was to add
react-native.config.js
file which is required for the library to run on new architecture, there were no changes to any dependency versions.I’ll dive into the problem and let you know asap whats going on
It was only bumped in
FabricTestExample
application and should have no impact on library usage.same issue
after “react-native start --reset-cache” i find the warn message below Package react-native-screens has been ignored because it contains invalid configuration. Reason: "dependency.platforms.android.componentDescriptors
also, i can’t build android