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

Created on 22 Mar 2017  路  11Comments  路  Source: facebook/react-native

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
Locked

Most helpful comment

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

All 11 comments

Step to reproduce

Rewind the flatList from the bottom up and click on the button when the application scrolls

+1

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

doing as @AdriaRios said works for me . It is ridiculous.

I have the same problem on v0.43.2 (only on Android).
I have something like <Text>{123}</Text> (123 is a number) and when i tap the text area, i get this error

Same problem with RN 0.43.2 Android... but I'm unable to find the Text causing the error...

+1

I get this issue in Android where I have a list of TouchableOpacity items with onPressed functions.

same issue here. +1

<Text>{this.state.integer.toString()}</Text> worked for me

Was this page helpful?
0 / 5 - 0 ratings