Comments (10)
Navigator.push 需要传递组件 id. 本库也支持类似方式, Navigator.dispatch(...),0.8.0 开始支持,还没发版,不过 Playground 这个项目可以体验到了
from hybrid-navigation.
就是我有个公共的组件并没有注册页面 我如何实现跳转? 你们的app是如何处理的?
from hybrid-navigation.
父组件传递进去
from hybrid-navigation.
react native navigation中使用了 Navigator.push 这种API 感觉这种比较方便点
from hybrid-navigation.
this.props.navigation 这个是不是在master分支上面改名成this.props. navigator 了 ?
from hybrid-navigation.
@treemore 是的,但是通过 this.props.navigation 也可以取到
from hybrid-navigation.
可不可以講一下 Navigator.dispatch 怎用啊,沒文件
from hybrid-navigation.
以 push 为例:
Navigator.dispatch(this.props.sceneId, 'push', { moduleName: 'xxxxx'});
from hybrid-navigation.
請問這個 this.props.sceneId 是指?
from hybrid-navigation.
可以了 感謝
from hybrid-navigation.
Related Issues (20)
- HBDTabBarController.m:183:21: No visible @interface for 'UITabBar' declares the selector 'scrollEdgeAppearance' HOT 19
- iOS全局设置barButtonItemTextSize,字体大小修改无效 HOT 1
- android 监听 BackHandler 虚拟键返回无效 HOT 3
- 使用了 react-native-vector-icons 中的icon HOT 2
- Dynamic Styles HOT 12
- Navigator.setInterceptor((action, from, to, extras), to字段返回undefined HOT 2
- 请问如何改变 showModal 默认的背景透明度? HOT 4
- npm install后在ios文件夹中未发现podfile。 HOT 1
- Reload后会初始化两次Stack的screen HOT 3
- [Android] 隐藏TopBar并设置titleItem会导致crash
- ReactRegistry.registerComponent可以懒注册吗 HOT 2
- 能否增加一个已有的原生项目相关的例子。 HOT 4
- 建议允许显示多个modal并可关闭指定Modal HOT 7
- navigationBarHiddenAndroid 参数在打开Modal时会发生抖动 HOT 10
- 建议: 能不能出个Demo 能用的? 按照教程来搞完全报错 HOT 4
- 大佬有联系方式吗
- 教程中android配置去掉ReactActivity怎么跑起来的? HOT 1
- app启动闪退 HOT 7
- navigationBarHiddenAndroid 在Android 7上不生效 HOT 1
- react-native-safe-area-context问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hybrid-navigation.