beefe / react-native-actionsheet

An elegant ActionSheet component for React Native.
MIT License
1.35k stars 343 forks source link

Error calling RCTEventEmitter.receiveTouches #71

Closed vkupar closed 4 months ago

vkupar commented 5 years ago

This error occures when I run this.ActionSheet.show() from iOS

Error calling RCTEventEmitter.receiveTouches

Unhandled JS Exception: Exception calling object as function: [object Object], 381 is not usable as a native methd argument (unknown file: 2206)

rarenatoe commented 5 years ago

This error occurs to me when I add the <Text></Text> tags to the title prop.

lukebrandonfarrell commented 5 years ago

@vatex @renato-bvdash Any update on this? It occurs when we pass a custom element to options on iOS.

vkupar commented 5 years ago

@lukebrandonfarrell I use this module for Android only. I used ActionSheetIOS for iOS platform

adescode commented 4 years ago

Error calling RCTEventEmitter.receiveTouches

Unhandled JS Exception: Exception calling object as function: [object Object], 381 is not usable as a native methd argument (unknown file: 2206)

if you are using a custom styling check your import it should import { ActionSheetCustom as ActionSheet } from 'react-native-actionsheet'; not import ActionSheet from 'react-native-actionsheet';