react-native-navigation README

The project's README from github.com/wix/react-native-navigation. As one markdown file: README.md.

SWUbanner


React Native Navigation

NPM downloads NPM latest version NPM snapshot version NPM snapshot version

Follow on Twitter Chat on Discord StackExchange

React Native Navigation provides 100% native platform navigation on both iOS and Android for React Native apps. The JavaScript API is simple and cross-platform - just install it in your app and give your users the native feel they deserve. Ready to get started? Check out the docs.

Quick Links

Requirements

Apps using React Native Navigation may target iOS 11 and Android 5.0 (API 21). You may use Windows, macOS or Linux as your development operating system.

Installation

As react-native-navigation is a native navigation library - integrating it into your app will require editing native files. Follow the installation guides in the documentation.

react-native-navigation (wix/react-native-navigation)

Searching Database…

这是什么?React Native Navigation 是一个面向 React Native 应用的导航库。它把所有导航工作交给原生平台 API 处理,而不是用 JavaScript 重新实现,因此在 iOS 和 Android 上可以实现 100% 原生导航。
这是纯 JS 库,还是会涉及原生代码?这是一个原生导航库。它的 JS 接口简单且跨平台,但底层会对接 iOS 和 Android 的原生导航控制器,所以集成时需要编辑原生项目文件。
怎么把它添加到项目里?先安装这个包,然后按照文档中的原生安装指南操作,因为 iOS 和 Android 两端的原生文件都需要编辑。
需要面向哪些平台版本?应用需要面向 iOS 11+ 和 Android 5.0(API 21)+;开发可以在 Windows、macOS 或 Linux 上进行。
安装难度和普通的 npm 包一样简单吗?不是。因为它是原生库,不能只执行 `npm install` 就直接使用,必须按照文档中针对各平台的原生集成步骤操作,比纯 JS 包复杂得多。
为什么要用它,而不是只基于 JS 的导航库?因为导航由 iOS/Android 原生组件直接处理,而不是在 JavaScript 中模拟,所以你能获得原生的转场性能、手势和外观体验,而不是 JS 驱动的近似效果。
它支持 TypeScript 吗?项目依赖中包含 tslib,这暗示它支持 TypeScript,但 README 没有给出关于类型定义的完整细节。
Creator
wix
Size
202.8 MB
Stars
13.2K
Age
10y
Commits · 90 Days