Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown arguments type '__attribute__' in method -[RCTUIManager set JSResponder:blockNativeResponder] #20

Closed
aoarashi1988 opened this issue Dec 18, 2019 · 2 comments

Comments

@aoarashi1988
Copy link

2019-12-18 17:57:48.753 [error][tid:com.facebook.react.ShadowQueue][RCTModuleMethod.mm:369] Unknown argument type '__attribute__' in method -[RCTUIManager setJSResponder:blockNativeResponder:]. Extend RCTConvert to support this type.
2019-12-18 17:57:48.756 [fatal][tid:com.facebook.react.ShadowQueue] Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking setJSResponder on target UIManager with params (
    2202,
    0
)
callstack: (
	0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23d03ab1 _CFThrowFormattedException + 194
	3   CoreFoundation                      0x00007fff23b85749 -[__NSArrayM objectAtIndexedSubscript:] + 169
	4   taroDemo                            0x000000010340deff -[RCTModuleMethod processMethodSignature] + 13327
	5   taroDemo                            0x0000000103412e4d -[RCTModuleMethod invokeWithBridge:module:arguments:] + 189
	6   taroDemo                            0x00000001034be0f7 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 791
	7   taroDemo                            0x00000001034bdc03 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 131
	8   taroDemo                            0x00000001034bdb79 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 25
	9   libdispatch.dylib                   0x00000001041dddd4 _dispatch_call_block_and_release + 12
	10  libdispatch.dylib                   0x00000001041ded48 _dispatch_client_callout + 8
	11  libdispatch.dylib                   0x00000001041e55ef _dispatch_lane_serial_drain + 788
	12  libdispatch.dylib                   0x00000001041e617f _dispatch_lane_invoke + 422
	13  libdispatch.dylib                   0x00000001041f1a4e _dispatch_workloop_worker_thread + 719
	14  libsystem_pthread.dylib             0x00007fff5246371b _pthread_wqthread + 290
	15  libsystem_pthread.dylib             0x00007fff5246357b start_wqthread + 15
)

This error occored when the program is initialized or each time I touch the touchable component (such as Button, or ScrollView), and show a red screen

What can I do ?

@aoarashi1988
Copy link
Author

resolved
see facebook issue#25138

@zouyang2015
Copy link

node_modules里react-native照着下边文档改下就OK了
https://github.com/facebook/react-native/pull/25146/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants