Gustash / react-native-image-keyboard

React Native TextInput expansion to enable media input.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should hide tooltip if there is nothing to be pasted

JungHsuan opened this issue · comments

Double clicking the TextInput will show the tooltip even if there is nothing to paste.
Pasting null to TextInput will cause crash on iOS.

Crash message:
NSInvalidArgumentException
-[RCTMultilineTextInputView paste:]: unrecognized selector sent to instance 0x151fbb510

Screenshot:
93322285-b917d480-f845-11ea-9377-d82d0eea72a7

Xcode console:
IMG_4244

This should be fixed on v2.0.1, thanks to @mbouxin! Please try that version and open a new issue if the crash still persists.

Regarding hiding the tooltip when the pasteboard is empty, that seems to not be the intended behavior on iOS, since Safari.app also shows a tooltip for pasting, even when the pasteboard is empty.