Skip to main content
Version: 7.x

社区库

本指南列出了可以与 React Navigation 一起使用的各种社区库,以增强其功能。

¥This guide lists various community libraries that can be used alongside React Navigation to enhance its functionality.

注意

请参阅该库的文档以了解它支持哪个版本的 React Navigation。

¥Please refer to the library's documentation to see which version of React Navigation it supports.

react-native-screen-transitions

为 React Navigation 的 原生堆栈导航器 提供可自定义屏幕过渡动画的库。

¥A library that provides customizable screen transition animations for React Navigation's Native Stack Navigator.

仓库

¥Repository

react-navigation-header-buttons

帮助你在导航栏中渲染按钮并处理样式,这样你就不必这样做。它尝试模仿原生导航栏按钮的外观,并尝试提供一个简单的界面供你交互。

¥Helps you to render buttons in the navigation bar and handle the styling so you don't have to. It tries to mimic the appearance of native navbar buttons and attempts to offer a simple interface for you to interact with.

仓库

¥Repository

react-navigation-props-mapper

提供简单的 HOC,将 React 导航属性直接映射到屏幕组件 - IE。你可以写 const user = this.props.activeUser,而不是 const user = this.props.route.params.activeUser

¥Provides simple HOCs that map react-navigation props to your screen components directly - ie. instead of const user = this.props.route.params.activeUser, you'd write const user = this.props.activeUser.

仓库

¥Repository