Gustash / react-native-image-keyboard

React Native TextInput expansion to enable media input.
MIT License
147 stars 14 forks source link

Should hide tooltip if there is nothing to be pasted #5

Closed JungHsuan closed 2 years ago

JungHsuan commented 3 years ago

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

Gustash commented 2 years ago

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.