当我想安装 reac-navigation、react-native-gesture-handler 和 react-native-reanimated 时,我正在使用 react-native 0.59.10 制作一个项目。我得到错误并且项目没有建立,我应该使用它们每个的特定版本吗?
1 回答
0
由于您使用react-native 0.59.10的是该库的最新版本,因此可能不兼容。
根据您的要求,
react-native-gesture-handler1.1.0&之间的版本1.4.0。查看此官方文档以获取更多信息。react-navigation需要react-native@^0.54.x. 由于react-navigation@3.x依赖于新的React.createContextAPI,它是在react@16.3.x.
于 2020-01-01T12:17:39.477 回答