mattermost / react-native-paste-input

React Native TextInput replacement to allow pasting files
MIT License
89 stars 15 forks source link

Android Not Working #24

Closed timothyerwin closed 10 months ago

timothyerwin commented 10 months ago

Do I need to do anything extra to configure Android?

It works fine in iOS, but then when I try to do the keyboard gif, or paste an image from clipboard it just says "Can't enter this content here" or the image just prints weird characters with Exif at the end...

I'm guessing it's not actually running the Android code or I need to install something else in the Gradle?

timothyerwin commented 10 months ago

I tried running the example itself on my native samsung galaxy and it fails as well.

Screenshot_20230825_170514_ReactNativePasteInput Example

enahum commented 10 months ago

What version of Android are you on? And what keyboard are tou using?

timothyerwin commented 10 months ago

I found out it works with GBoard but not the default Samsung keyboard. I'm trying this solution mentioned here now but not sure if it works yet...

https://github.com/mattermost/react-native-paste-input/issues/8

timothyerwin commented 10 months ago

@enahum it works perfectly with both keyboards after applying #8

maybe you could do an update?

enahum commented 10 months ago

@enahum it works perfectly with both keyboards after applying #8

maybe you could do an update?

Great.. can you submit a PR?, I'll make sure to review/merge and release during the weekend

timothyerwin commented 10 months ago

@enahum it works perfectly with both keyboards after applying #8 maybe you could do an update?

Great.. can you submit a PR?, I'll make sure to review/merge and release during the weekend

I can but I also want to include this fix:

#import "react_native_paste_input/react_native_paste_input-Swift.h"

But I don't know if that will break it for anyone else. Do you know the #if block conditions around that?

enahum commented 10 months ago

No i dont but I think adding a / at the end should be enough to handle everything else