Skip to content
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

[iOS] RN v0.60 - Screen native module hasn't been linked. #125

Closed
nonewcode opened this issue Jul 10, 2019 · 18 comments
Closed

[iOS] RN v0.60 - Screen native module hasn't been linked. #125

nonewcode opened this issue Jul 10, 2019 · 18 comments

Comments

@nonewcode
Copy link
Contributor

nonewcode commented Jul 10, 2019

Created a fresh react native project and added react-navigation, react-native-gesture-handler & react-native-screens.

Added gesture handler and screens to the non auto linking config and did the appropriate react-native link xxx commands for both libraries. I then receive this error when loading the application:

Screenshot 2019-07-10 17 01 07

@choibles
Copy link

Have you tried the following in Terminal?

cd ios && pod install

@rafael-arreola
Copy link

I have the same problem with android

@rafael-arreola
Copy link

perform the steps as mentioned in the other thread, but still throw the error that he comments.

some way to fix it?

Screenshot_2019-07-16_12-28-44
Screenshot_2019-07-16_12-29-44
Screenshot_2019-07-16_12-30-11

@jetobe95
Copy link

Same problem here

@code-freakz
Copy link

code-freakz commented Jul 19, 2019

Works fine when switching off remote debugger.
But it should work with remote dubugger
( Android physical device )

@o5faruk
Copy link

o5faruk commented Jul 22, 2019

Same problem, rn version 0.59.9, any solutions?

@herlarb
Copy link

herlarb commented Jul 24, 2019

Run yarn add react-native-screens directly as it appears that react-native 0.60 does not directly auto-link the react-native-screens dependency on react-navigation. The auto-link appears to only work if the 'react-native-screens' is found in the package.json.
For 0.59.* you could use the "1.0.0-alpha.22" version which works with the regular manual linking or use Jetify

Update: @badgeek : See if disabling remote debugging works

@badgeek
Copy link

badgeek commented Jul 28, 2019

not working @herlarb

@brandtnewlabs
Copy link

brandtnewlabs commented Jul 28, 2019

I had the Same problem here with Android. Fresh project!

"dependencies": {
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-gesture-handler": "^1.3.0",
    "react-native-screens": "^1.0.0-alpha.23",
    "react-native-unimodules": "0.4.0",
    "react-navigation": "^3.11.1"
}

I then downgraded react-native-screens to 1.0.0-alpha.22 and did a react-native link react-native-screens (see here: #126). Now it works.

@vikjovanov
Copy link

I had the same problem with iOs.
I just launched cd ios && pod install and it's works perfectly now.

@sandyalta
Copy link

any solution about this for android with RN v.60?

@ckOfor
Copy link

ckOfor commented Aug 23, 2019

I am using a fresh project and I have this problem

@tianlinzx
Copy link

I had the same problem with iOs.
I just launched cd ios && pod install and it's works perfectly now.

@nonewcode
Copy link
Contributor Author

I think this has been solved and i'm going to close the issue. Working fine for me running a fresh project with the latest release.

@nateblog
Copy link

nateblog commented Apr 2, 2020

in your podfile just add

pod 'RNScreens', :path => '../node_modules/react-native-screens'

then pod install

it should work, I hate it but it seems not all RN Packages are autolinked

@UmairRehmat
Copy link

perform the steps as mentioned in the other thread, but still throw the error that he comments.

some way to fix it?

Screenshot_2019-07-16_12-28-44
Screenshot_2019-07-16_12-29-44
Screenshot_2019-07-16_12-30-11

@rafael-arreola did you find any solution so far? i am stuck on same issue

@amravazzi
Copy link

I have the same problem with android, react-native 0.59.10

@carlgrob5171989
Copy link

I have same problem in react-native 0.69.0 . it is occurring suddenly. what i missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests