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
requireNativeComponent: RNSScreen was no found in the UIMANAGER #1674
Comments
checking if this comment will work EDIT: did not work. |
Hi @my-name-is-nheo!
Yes, the
This error message is often a sign that the library has not been linked properly. It's hard to tell what is wrong with Would you mind running the following command in your project directory, and provide me with the result?
(Try to use |
Same issue |
Hi @kkafar I installed the package correctly, using rn version 0.73.0, rnscreens version 3.29.0 which I can confirm from my cmd. My github repo is here which you can directly use to troubleshoot: github repo I am still getting an error as follows I have setup my MainActivity.kt as follows as read in the readme. package com.cinepulse
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
import android.os.Bundle
class MainActivity : ReactActivity() {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
override fun getMainComponentName(): String = "CinePulse"
/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(null)
}
}
yarn react-native config, this command shows the following in my case:
I have also seen all the stackoverflow and github pages of all the possible solutions and tried them all, but still facing these issues. I faced the same issue in a previous project I was trying, and hence left it because I couldnt solve it. This issue came up in this one as well, while my project is relatively clean and simple right now. I used gradle clean as well and tried restarting my machine and vs code as well. and the reset cache of metro as well. I am unable to find the solution, please help. I am still learning a lot |
For those who donesn't work even if react-native-screens is added to package.json, pls try No worry, Relevant code are here |
I have tried all of the above steps and still have the error. This is my package.json: { |
Description
I have the latest versions of
installed.
However when I built my app, I ended up getting this error. I recently converted to
pnpm
and read react-native does not support symlinks so I added a configuration to flat out the node_modules without any. (more this here)After clearing cache, reinstall node_modules, and pods, I've navigated to my pods directory on XCode and I couldn't locate the RNSScreen pod.
(Am I supposed to see a RNSScreen pod in the list?)
I tried manually installing the pod
pod 'RNScreens', :path => '../node_modules/react-native-screens/RNScreens.podspec'
The error goes away, but got a duplicate pod error when trying to deploy to TestFlight. I was able to manually delete the duplicate pod (accessibilityResource) and publish, but I know this is not the way to fix this.
Any help would be greatly appreciated.
Steps to reproduce
Snack or a link to a repository
This link is just the index.js of my app
https://snack.expo.dev/U41fM6iPM
Screens version
3.18.2
React Native version
0.67.5
Platforms
iOS
JavaScript runtime
V8
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iphone 13
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: