React-native-screens: ReactNativeScreen enableScreens is not a function

Created on 8 Nov 2019  路  6Comments  路  Source: software-mansion/react-native-screens

image

"react-native-screens": "^2.0.0-alpha.8",

index.js file
import {enableScreens,} from 'react-native-screens';
enableScreens();

Most helpful comment

i had the same issue after upgrading. clearing the RN cache solved it for me:

node node_modules/react-native/local-cli/cli.js start --reset-cache

All 6 comments

i got the same one.

It used to be called useScreens in earlier betas so likely beta 8 it was called that. So either use the old name or update to latest.

i had the same issue after upgrading. clearing the RN cache solved it for me:

node node_modules/react-native/local-cli/cli.js start --reset-cache

you are right

@tarunkonda2016 is your issue solved? Can I close it?

I am closing it. Feel free to comment if something is not ok.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thomasgosse picture thomasgosse  路  4Comments

sibelius picture sibelius  路  3Comments

iDuuck picture iDuuck  路  5Comments

ukasiu picture ukasiu  路  4Comments

jeveloper picture jeveloper  路  5Comments