question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[3.18.1] requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager

See original GitHub issue

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

  1. Install/Upgrade to 3.18.1
  2. pod install
  3. 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:32 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
kkafarcommented, Oct 12, 2022

Thank you @Letty! I’ll have 3.18.2 released with this patch soon!

6reactions
Lettycommented, Oct 12, 2022

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:

"react-native-screens": "software-mansion/react-native-screens#49cc61e1fa9926a671d32bbb634a2c43c999e122"

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

"RNSScreenStackHeaderConfig" was not found in the ...
JavascriptException : Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager. This error is ...
Read more >
Render error while implementing Navigation in ReactNative
Tried the options suggested here requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager when running android ...
Read more >
react-native-screens - npm
This project aims to expose native navigation container components to React Native. It is not designed to be used as a standalone library ......
Read more >
ERROR Invariant Violation: requireNativeComponent ...
Depending on the nature of your error, there is no one solution that solves all. ... “RNSScreenStackHeaderConfig” was not found in the UIManager....
Read more >
"RNSScreenStackHeaderConfig" was not found in the ...
Coding example for the question requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager when running android app-Reactjs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found