我不知道地铁文件意味着什么,也不知道在哪里找到它,也不知道如何关闭它并重新启动它。这是否意味着Android仿真器?
错误:
Invariant Violation: "Project" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
我关闭了Android仿真器,并预期问题会消失,但结果是
[react-native-gesture-handler] react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).
For installation instructions, please refer to https://docs.swmansion.com/react-native-gesture-handler/docs/#installation
LOG Running "Project" with {"rootTag":1}
ERROR Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager
This error is located at:
in RNGestureHandlerRootView (created by GestureHandlerRootView)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by StackNavigator)
in StackNavigator (created by App)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in Project(RootComponent), js engine: hermes
ERROR Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager.
This error is located at:
in RNGestureHandlerRootView (created by GestureHandlerRootView)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by StackNavigator)
in StackNavigator (created by App)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in Project(RootComponent), js engine: hermes
发布于 2022-11-18 04:57:35
您的问题在错误消息react-native-gesture-handler module was not found
上,对吗?这意味着你需要安装它。试试npm install react-native-gesture-handler
https://stackoverflow.com/questions/74484665
复制相似问题