react-native-actionsheet icon indicating copy to clipboard operation
react-native-actionsheet copied to clipboard

ActionSheet.show() throws error

Open getavinashm opened this issue 6 years ago • 6 comments

ActionSheet.show() throws an error after upgrading to RN 0.50.4. Has anyone else faced similar issue ?

2017-12-18 12:32:11.183 [fatal][tid:com.facebook.react.JavaScript] Error calling RCTEventEmitter.receiveTouches

Unhandled JS Exception: Exception calling object as function: C++ exception in 'nativeFlushQueueImmediate'

Malformed calls from JS: field sizes are different.

screen shot 2017-12-18 at 12 59 54 pm

getavinashm avatar Dec 18 '17 07:12 getavinashm

Me to having the same issue please any one can revert back with a solution.

anilkumar1505 avatar Dec 29 '17 09:12 anilkumar1505

There is a fix for it. We cont send any component with the title for styling.The title takes only the string.

anilkumar1505 avatar Dec 29 '17 10:12 anilkumar1505

Error occurs when runnig in iOS and not in android

meetyourdev avatar Jan 15 '19 12:01 meetyourdev

@getavinashm @anilkumar1505 @meetyourdev did yous find a fix to this? This error occurs when I pass a custom element to options on iOS.

lukebrandonfarrell avatar Jan 20 '19 10:01 lukebrandonfarrell

@lukebrandonfarrell react-native-actionsheet uses react-native's default ActionSheetIOS on iOS which does not allow custom element to be passed. It allows string for title,message and array of string for options due to which error occurs while passing custom element.

meetyourdev avatar Jan 21 '19 07:01 meetyourdev

@meetyourdev Thanks. Makes sense now!

lukebrandonfarrell avatar Jan 21 '19 09:01 lukebrandonfarrell