Skip to content

Native navigation library for ReactNative, support navigating between native and ReactNative seamlessly.

License

Notifications You must be signed in to change notification settings

Ariel08081214/react-native-navigation-hybrid

 
 

Repository files navigation

react-native-navigation-hybrid

Native navigation library for ReactNative, support navigating between native and ReactNative seamlessly.

navigation-android

Running the Playground Project

To run the playground project, first clone this repo:

git clone git@github.com:listenzz/react-native-navigation-hybrid.git
cd react-native-navigation-hybrid

run on Android

First, make sure that you have a simulator or device.

Then,

npm install
# &
npm start

Then, in another CLI window:

npm run run:android

Download demo apk

run on iOS

First,

npm install
# &
npm start

Then, in another CLI window:

npm run run:ios

特性

  • 使用原生导航组件实现 React Native 页面间的导航,不仅具有更优的性能,而且使得 RN 页面具有原生质感
  • 原生页面和 RN 页面共享路由, 使得它们之间相互跳转和传值轻而易举
  • 内置 drawer, tabs, stack 标准容器,同时支持自定义容器和导航
  • 支持 deep link

目录

最近更新日志

最新版本: 0.14.6 - 2019/07/19

0.14.x

  • 修复 unselectedIcon 不生效的问题

  • 现在可以通过 Garden.setRightBarButtonItem(null) 移除 topBar 上的按钮

  • 优化了 switchTabsetRoot 的过渡效果

  • 修复额外生命周期 componentDidAppear 派发不准确的问题

  • [Android] 修复 Activity 冷重启的问题

  • [Android] 优化当应用从后台进入前台时的事务执行顺序

  • 自定义 TabBar 传递的数据发生变化,详见 自定义 TabBar 文档

  • 优化和 Garden 相关的若干 api,详见 style 文档

0.13.x - 2019/06/18

  • 修复和 react-native-code-push 协作偶尔导致的崩溃

  • Android 迁移到 Java 8

如果你的 app/build.gradle 没有以下配置,请加上

android {
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
}

About

Native navigation library for ReactNative, support navigating between native and ReactNative seamlessly.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 43.0%
  • Java 33.2%
  • JavaScript 15.5%
  • TypeScript 7.8%
  • Ruby 0.5%