I am receiving this message when I tried starting my react native app. Usually this kind of format works on other multi screen navigation yet somehow does not work in this c
I wasted my 2.5 hours to got this solution after many google searches...Hope this will work.
just import this two:
import { createStackNavigator } from "react-navigation-stack";
import { createAppContainer } from "react-navigation";
and make a little change to your code like this:
create const above the class
const AppNavigator = createAppContainer(RootStack);
and finally call that const in the class instead of
Thankx!