Non-serializable values were found in the navigation state. Check:
来源:5-6 基于导航框架实现页面间的跳转
一个减肥的小胖子
2022-03-17
navigation.navigate(page, {
…params,
navigation: undefined, //fix Non-serializable values were found in the navigation state. Check:
})
这样写
页面传值的时候写入function 还是会报 Non-serializable values were found in the navigation state. Check: 错误
目的是组件跳转到A页面 ,在A页面拿到值返回组件,想要在组件中拿到A页面返回的值
写回答
1回答
-
CrazyCodeBoy
2022-03-18
可以尝试下用react-native-event-bus来传递数据看看https://github.com/crazycodeboy/react-native-event-bus
00
相似问题