javascript - How to use react-native-screens with react-navigation v4?
问题描述
I have read a title which react-native-screens
package make faster the react-native
navigation while using react-navigation
.
And I dont find a good help of usage.
Now I want to know
- Do I need to install this package separately?
- Is it built into react-navigation in before?
- If it is built in before, So Do I need to use it or it is used already?
解决方案
您可以从那里安装react-native-screens
和导入导航器:https ://github.com/kmagiera/react-native-screens#using-native-stack-navigator
需要注意的几点:
- 你也需要
react-navigation-stack
安装 - 来自的导航
react-native-screens
器不是可定制的,这可能取决于您的情况 - 据我尝试,现在有点问题
React Navigation 5 (alpha) 有一个官方集成:https ://reactnavigation.org/docs/en/next/native-stack-navigator.html
但是前面的所有要点都适用。
推荐阅读
- rust - 如何在 NonNull 中添加/减去偏移量
? - pdf - 无法使用 Adobe Acrobat 5.0 PDFWriter、Windows 10、VB6 和 Crystal Reports 进行打印?
- python - 在Python中的csv文件中添加两个列表以分隔列
- javascript - Twig(或 Symfony?)不运行我的 jQuery 脚本
- mysql - ElasticSearch 6.2:来自 MySQL 的自动完成搜索
- sql - GROUP BY 子句或在聚合函数中使用
- c - C中的点符号?
- java - Oauth2 客户端注销不起作用
- android - Cordova:StatusBar 插件适用于模拟器,但不适用于设备
- kotlin - 这个 takeWhileInclusive 的实现安全吗?