小编Xyz*_*zor的帖子

React Navigation understanding navigator nestings

I've been using react-navigation for almost half a year, but I still don't understand the nesting part of it. How the navigation prop is inherited, how to communicate, etc..

I created a demo on snack, from the redux example app.

Demo

I'd like to understand these:

  1. What happens with the navigation prop if I navigate to a child navigator?

  2. How to navigate from a child navigators screen to the parents screen or the parents other child's screen

  3. How to remove …

javascript navigation react-native redux react-navigation

5
推荐指数
1
解决办法
777
查看次数

如何修复Facebook :: react :: Value :: toJSONString中的崩溃

问题

我在生产中收到了一个烦人的崩溃报告,我无法解决,但我认为它与github问题有关

问题在于,崩溃似乎是随机出现的,而不是经过特定操作后才出现的。

我跟踪了下一行的来源,我认为这与崩溃有关,但是我不确定。

2019-02-07 14:22:50.203 10137-10137/? A/DEBUG:     #11 pc 0005e669  /data/app/com.xyzor.timer-1/lib/arm/libjsc.so (JSValueCreateJSONString+72)
Run Code Online (Sandbox Code Playgroud)

更新:
通过使用addr2line,我设法跟踪了如下所示的堆栈:

ReactCommon / jschelpers / Value.cpp#64

2019-02-07 14:22:50.203 10137-10137/? A/DEBUG:     #11 pc 0005e669  /data/app/com.xyzor.timer-1/lib/arm/libjsc.so (JSValueCreateJSONString+72)
Run Code Online (Sandbox Code Playgroud)

ReactCommon / cxxreact / MethodCall.cpp#21

2019-02-07 14:22:50.203 10137-10137/? A/DEBUG:     #12 pc 0003b3b9  /data/app/com.xyzor.timer-1/lib/arm/libreactnativejni.so (_ZNK8facebook5react5Value12toJSONStringEj+20)
Run Code Online (Sandbox Code Playgroud)

ReactCommon / cxxreact / Instance.cpp#69

2019-02-07 14:22:50.203 10137-10137/? A/DEBUG:     #13 pc 00033c3b  /data/app/com.xyzor.timer-1/lib/arm/libreactnativejni.so (_ZN8facebook5react11JSCExecutor19flushQueueImmediateEONS0_5ValueE+26)
Run Code Online (Sandbox Code Playgroud)

ReactCommon / cxxreact / Instance.cpp#125

2019-02-07 14:22:50.203 10137-10137/? A/DEBUG:     #14 pc 00033d6f  /data/app/com.xyzor.timer-1/lib/arm/libreactnativejni.so (_ZN8facebook5react11JSCExecutor25nativeFlushQueueImmediateEjPKPK13OpaqueJSValue+86)
Run Code Online (Sandbox Code Playgroud)

更新:
我创建了一个小吃演示来重现崩溃。
通过每次存储此字符串"012345678".repeat(1024*1024),可以重现该错误。 …

android segmentation-fault react-native expo

5
推荐指数
1
解决办法
318
查看次数