我已经安装了GestureHandler ( npx expo install react-native-gesture-handler) 并使用 polyfills 将其导入到我的App.tsx文件的第 3 行中
import 'react-native-gesture-handler';
是按照世博文档执行的,由于某种原因,即使在运行(清除缓存)之后它似乎仍然无法工作,npx expo start --clear它会给我这个错误:
Error: NativeViewGestureHandler must be used as a descendant of GestureHandlerRootView.
Otherwise the gestures will not be recognized.
See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.
Run Code Online (Sandbox Code Playgroud) headerBackTitle: "..."我正在使用 Expo SDK 48(从 46 升级后),我的问题是我的 React Navigation 中包含或包含一堆选项headerBackTitleVisible: false,但似乎在新的更新中不起作用。查看了 React Nav 上的文档,但没有发现任何重大更改...有人遇到过同样的问题吗?
代码:(
options={{ headerBackTitleVisible: false, headerTitle: "Detail" }}headerTitle 工作正常:))