question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'onStartShouldSetResponderCapture' of undefined RN v0.43.0-rc.4

See original GitHub issue

Description

Error log:

Cannot read property 'onStartShouldSetResponderCapture' of undefined
handleException @ ExceptionsManager.js:63
handleError @ InitializeCore.js:125
reportFatalError @ error-guard.js:44
guard @ MessageQueue.js:48
callFunctionReturnFlushedQueue @ MessageQueue.js:107
(anonymous) @ debuggerWorker.js:71

ExceptionsManager.js:63 Cannot read property 'onMoveShouldSetResponderCapture' of undefined
handleException @ ExceptionsManager.js:63
handleError @ InitializeCore.js:125
reportFatalError @ error-guard.js:44
guard @ MessageQueue.js:48
callFunctionReturnFlushedQueue @ MessageQueue.js:107
(anonymous) @ debuggerWorker.js:71

ExceptionsManager.js:63 Cannot read property 'onTouchEndCapture' of undefined
handleException @ ExceptionsManager.js:63
handleError @ InitializeCore.js:125
reportFatalError @ error-guard.js:44
guard @ MessageQueue.js:48
callFunctionReturnFlushedQueue @ MessageQueue.js:107
(anonymous) @ debuggerWorker.js:71

Log from google play:

`com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 'u[n]'), stack:
getListener@95:1029
n@103:62
i@103:156
s@104:587
c@103:340
i@100:95
p@103:800
n@115:385
extractEvents@115:2987
extractEvents@95:1297
handleTopLevel@109:179
<unknown>@108:595
a@111:298
c@111:60
perform@150:596
batchedUpdates@143:464
i@144:358
i@111:90
u@111:150
_receiveRootNodeIDEvent@108:567
receiveTouches@108:941
value@19:2897
<unknown>@19:1013
<unknown>@19:106
value@19:985
	at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:99)
	at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:83)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:345)
	at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:141)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
	at android.os.Looper.loop(Looper.java:154)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
	at java.lang.Thread.run(Thread.java:761)`

Additional Information

I am used FlatList, this is only in android. When i tap button in renderItem sometimes see this error. In release build app crashing

  • React Native version: v0.43.0-rc.4
  • Platform: Android
  • Development Operating System: MacOS
  • Dev tools: Android Studio 2.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

42reactions
AdriaRioscommented, Mar 30, 2017

EDIT

Is my case, the origin of this error is to put inside a < Text > tag, anything different to String ( a Number for example).

Fixed doing .toString() before use it in < Text >

@prigornitskiy

19reactions
sunnylqmcommented, Apr 26, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found