Comments (12)
I solved it this way: cd android && ./gradlew clean
from clipboard.
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
from clipboard.
I had the same issue with Android.
Weird enough I had to do a pod install:
cd ios && pod install && cd ../
after that, I ran react-native run-android
and it worked.
from clipboard.
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 useClipboard
hook, but have to now settle with using the deprecated version. At least it doesn't throw that ugly error.
from clipboard.
I am with this issue too, but in the Native enviroment. Gonna try this too @Jorciney .
from clipboard.
@dheyson good luck!
from clipboard.
@Jorciney are you using React Native with Expo (managed project) ?
Unfortunately I think it's not recommended to use pod install
with Expo (managed project)...
from clipboard.
@lapico You are right, I'm not using Expo.
from clipboard.
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).
from clipboard.
I solved it this way:
cd android && ./gradlew clean
This answer is the correct one. thank you!
from clipboard.
Stil this is open?
from clipboard.
I am still facing this issue. Any update on this?
from clipboard.
Related Issues (20)
- Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. HOT 7
- [Android-New Arch] Cannot specify link libraries for target "react_codegen_RNCClipboard" which is not built by this project HOT 15
- Can we deprecate the NPM package for @react-native-community/clipboard
- no idea why need to link
- How get to work with Expo HOT 1
- App Hanging: App hanging for at least 2000 ms. Happens for iOS devices only. HOT 3
- Clear the clipboard
- Android: After upgrading to React Native version 0.73, build failed HOT 7
- Monorepo REACT_NATIVE_NODE_MODULES_DIR error HOT 2
- Getting "copied" send to device in android 13 HOT 1
- Task :react-native-community_clipboard:compileDebugJavaWithJavac FAILED HOT 14
- SetString("") not clear Gboard's clipboard
- Expose access to EXTRA_IS_SENSITIVE for setString on Android
- Error to Deploy to Android RN 0.73.2 HOT 6
- ios listener not being called
- public class ClipboardModule extends NativeClipboardModuleSpec HOT 2
- Allowing RN 0.74 as a peer dependency HOT 9
- pod install fails undefined method `visionos' HOT 6
- Can we use this clipboard to listen to iOS AutoFill text?
- How to remove the default toast msg 'copied'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clipboard.