Skip to content

适配React Native的版本 整合react-navigation #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

适配React Native的版本 整合react-navigation #56

wants to merge 3 commits into from

Conversation

zhangyu921
Copy link

主要修改了 store.js, render.js,删除了router.js文件

使用方法:

// index.js
import { render, TabNavigator, TabBarBottom } from './mirrorx'

const RootNavigator = TabNavigator({
  Main: {screen: MainScreen},
  Supplier: {screen: SupplierScreen}
}, {
  tabBarComponent: TabBarBottom,
  tabBarPosition: 'bottom'
})

render('RNStart', RootNavigator)

PR的姿势还不熟练,仅修改了代码部分,如果需要做什么的话,还请多多指教
希望能派上点用场~

@llh911001
Copy link
Member

看了下代码,这是把 react-router 相关的都删掉,改为 react-navigation 了么?

@zhangyu921
Copy link
Author

是的呢~ @llh911001

当做学习发布了这个 https://github.com/zhangyu921/mirrorn
还在学习写测试的姿势,有可能的话,希望能成为mirrorjs下的一个项目

@llh911001
Copy link
Member

llh911001 commented Sep 21, 2017

我们已经在考虑将 router 这一块解耦了(需要时才引入,不需要则不引入,参考 #51,到时候就可以引入自己想用的 router 方案了)。所以暂时不考虑直接集成某一特定的路由方案哈。

不过你作为自己的项目,定制,是完全可以的!

@zhangyu921 zhangyu921 closed this Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants