Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 不变冲突:模块AppRegistry不是已注册的可调用模块(调用runApplication)-反应本机_Reactjs_React Native_React Native Android_React Navigation - Fatal编程技术网

Reactjs 不变冲突:模块AppRegistry不是已注册的可调用模块(调用runApplication)-反应本机

Reactjs 不变冲突:模块AppRegistry不是已注册的可调用模块(调用runApplication)-反应本机,reactjs,react-native,react-native-android,react-navigation,Reactjs,React Native,React Native Android,React Navigation,我不知道这个代码出了什么问题。 我使用react导航,它工作得很好,但我不知从哪里得到了一个错误。 我觉得导航有问题 这是 这是Home.js const Home = ({ navigation }) => { return ( <> <ImageBackground source={require('../images/wall.jpeg')} style={styles.back}> <View style={styles.box}> <I

我不知道这个代码出了什么问题。 我使用react导航,它工作得很好,但我不知从哪里得到了一个错误。 我觉得导航有问题

这是

这是Home.js

const Home = ({ navigation }) => {
return (
<>
<ImageBackground source={require('../images/wall.jpeg')} style={styles.back}>
<View style={styles.box}>

<Image source={require('../images/logo.png')} style={styles.logo}/>
  <TouchableOpacity onPress={() => navigation.navigate('Questions')}>
<View style={styles.container}
 >
<Image source={require('../images/game.png')} style={styles.icons}/>
<Text style={{fontFamily: 'bpg_extrasquare_mtavruli_2009', fontSize: 20}}>გასართობი</Text>
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => navigation.navigate('Questions')}>
<View style={styles.container2}>
 <Text style={{fontFamily: 'bpg_extrasquare_mtavruli_2009', fontSize: 20}}>ცენზურა</Text>
<Image source={require('../images/hand.png')} style={styles.icons}/>
</View>
</TouchableOpacity>
 <TouchableOpacity onPress={() => navigation.navigate('Questions')}>
<View style={styles.container3}>
 <Image source={require('../images/gender.png')} style={styles.icons}/>
 <Text style={{fontFamily: 'bpg_extrasquare_mtavruli_2009', fontSize: 20}}></Text>
 </View>
</TouchableOpacity>
  </View> 
 </ImageBackground> 
  </>
  );
};




 const Stack = createStackNavigator();

  function MyStack() {
  return (
   <Stack.Navigator  
    >

  <Stack.Screen name="Home" component={Home} />
  <Stack.Screen name="Questions" component={Questions} />
  
 </Stack.Navigator>
   );
}
const Home=({navigation})=>{
返回(
导航。导航('Questions')}>
გასართობი
导航。导航('Questions')}>
ცენზურა
导航。导航('Questions')}>
);
};
const Stack=createStackNavigator();
函数MyStack(){
返回(
);
}

因此,如果您知道发生了什么问题,请帮助

您可以清除缓存并杀死所有节点,或者代码有问题

有时这种情况会发生在我身上:对我起作用的是清理构建文件夹清理节点缓存和重新构建--如果它不起作用,我建议这样做查看代码中是否有错误这种情况经常发生在我身上-主要是我编写的方法工作/有时可能有错误当你导入一些类或功能时,命名这种情况经常发生,所以我认为导航应该有问题