React-native-screens: [iOS] RN v0.60 - Screen native module hasn't been linked.

Created on 10 Jul 2019  路  16Comments  路  Source: software-mansion/react-native-screens

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

Most helpful comment

Have you tried the following in Terminal?

cd ios && pod install

All 16 comments

Have you tried the following in Terminal?

cd ios && pod install

I have the same problem with android

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

Same problem here

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

Same problem, rn version 0.59.9, any solutions?

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

not working @herlarb

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: https://github.com/kmagiera/react-native-screens/issues/126). Now it works.

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

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

I am using a fresh project and I have this problem

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

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings