const RootStack = createStackNavigator( {
Home : HomeScreen, }, );
const AppContainer = createAppContainer(RootStack); export default class App extends React.Component { render() { return ; } }
答案 0 :(得分:0)
您的标签指定的react-native-navigation
与react-navigation
不同。您正在使用react-navigation
。这是您的解决方案:
const AppContainer = createAppContainer(RootStack);
export default class App extends React.Component {
render() {
return <AppContainer / > ;
}
}