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.

"RNSSearchBar" was not found in the UIManager (Expo project)

See original GitHub issue

Description

After adding searchBar to options I get the error:

Invariant Violation: requireNativeComponent: "RNSSearchBar" was not found in the UIManager.
IMG_5861

Steps To Reproduce

  1. Create Expo project with react-native-screens@3.2.0
  2. Add searchBar config to stack screen

Expected behavior

Configuration works fine

Actual behavior

I’m getting error

Package versions

  • React: 16.13.1
  • Expo: 41.0.1
  • React Native Screens: 3.2.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
phhoefcommented, Sep 13, 2021

Thanks, worked for me, too 😃

1reaction
kacperkapusciakcommented, May 11, 2021

Sadly, one of the disadvantages of Expo managed workflow is that you can’t upgrade native dependencies by hand because they are compiled for a specific SDK. (See this part of Expo docs.) The newest version of react-native-screens will be included (hopefully) in the next release of Expo SDK. I believe the current version of our lib in SDK 41 is v3.0.0. So, if you want to try out the newest version of screens you have to do it with a bare workflow. Have a great day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

requireNativeComponent: "RNSScreen" was not found in the ...
Issue : With Expo, Sanity.io app was working on device in dev, but once apk was generated ... "RNSScreen" was not found in...
Read more >
requireNativeComponent: "RNCPicker" was not found in the ...
`Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager. This error is located at: in RNCPicker (at PickerIOS.ios.js:107)
Read more >
Create a new app - Expo Documentation
Learn how to create a new Expo project and run it on your device. Before creating a new Expo app, you have to...
Read more >
react-native-fast-image | Voters - Expo - Canny
Brent Vatne: I am currently working my way through a React Native course that uses expo, and I've been shown that fast image...
Read more >
How to fix “RNCSafeAreaProvider” was not found in ... - Medium
3.) npx react-native run-android to build the app again. The “RNCSafeAreaProvider” was not found in the UIManager Error should be gone by now...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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