我在react-native 应用程序上使用NavigatorIOS.我想在导航回上一条路由时传递一些属性.

例如:

我该怎么做?

推荐答案

当你推送新路由时,你能在导航器props 上传递一个回调函数,并在跳转到上一条路由之前用表单数据调用它吗?

React-native相关问答推荐

领带麦克风在Reaction-Native-Incall-Manager中不工作

React Native:如何以编程方式对图像进行黑白过滤?

React Native - remount / reset / reload屏幕的最佳方式是什么?

在向后滑动时执行操作(react-navigation )

React Native Card Carousel 视图?

打包程序无法启动

如何更改 React Native(android)应用程序的远程推送通知图标

iPhone 6s plus 上的字体大小

中彼此相邻对齐(Align) react native

如何在 array.map 中的每个元素之后添加逗号,除了 React JSX 中的最后一个元素

可以react native使用jQuery

使用 Jest 测试 React Native 应用程序

react-native平面列表初始滚动到底部

如何在 React Native 中重复图案图像以创建背景?

如何在 React Native 的 MapView 中设置标记

React Native - 如何从推送通知中打开路由

如何在android studio中导入react native元素

如何使用 Jest 测试导入自定义原生模块的 React Native 组件?

无法读取未定义的属性 string| React.PropTypes | LayoutPropTypes.js

React Native - 导航问题undefined is not an object (this.props.navigation.navigate)