-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard is null #80
Comments
I had the same issue with Android. |
I am with this issue too, but in the Native enviroment. Gonna try this too @Jorciney . |
@dheyson good luck! |
@Jorciney are you using React Native with Expo (managed project) ? Unfortunately I think it's not recommended to use |
@Lapico You are right, I'm not using Expo. |
Seems like using the native alternative (deprecated) is the only workaround for now. The community version just doesn't work with Expo. I tried a lot, including using |
I confirm this, I also use the deprecated version because the community one does not work with Expo. Strange fact, the community version seemed to work in the tests (Jest). |
Unfortunately, this module is not compatible with Expo, since expo only works with preinstalled native modules. If you're using Expo with managed workflow, please use the Clipboard module exported from react-native |
I solved it this way: |
This answer is the correct one. thank you! |
Stil this is open? |
I am still facing this issue. Any update on this? |
Environment
React Native with Expo 39
Platforms
Android
Versions
Description
This code throws this error:
null is not an object (evaluating 'NativeClipboard_1.default.getString')
But strangely, when I test the code with Jest it works... Maybe Clipboard is not yet mounted properly when the effect is triggered.
The text was updated successfully, but these errors were encountered: