Comments (32)
I have the same issue (expo SDK 38).
I ended up reverting to clipboard from react-native for now.
import { Clipboard } from 'react-native'
updated:
You can use import * as Clipboard from 'expo-clipboard'
now. I'm usgin SDK 43.
from clipboard.
I had the same problem on Android. Solved uninstalling the app and reinstalling it.
from clipboard.
currently managed workflow for expo does not support this clipboard module.
Please continue using import {Clipboard} from 'react-native'
for now until the support is added to expo.
This module should work for bare workflow of expo and regular react-native via react-native-cli
sorry about the inconvenience!
from clipboard.
Same here on Expo SDK 38 + 39 and @react-native-community/clipboard: ^1.2.3
Solved it by using @foloinfo solution by using import { Clipboard } from 'react-native'
from clipboard.
There is honestly nothing I can do about using this package on a managed workflow of expo, as managed workflow of expo has predetermined sets of native modules it can use and this package isn't one of them.
Please use import {Clipboard} from 'react-native'
for managed workflow of expo.
from clipboard.
Same here on Expo SDK 38 + 39 and @react-native-community/clipboard: ^1.2.3
Solved it by using @foloinfo solution by using
import { Clipboard } from 'react-native'
The only issue with that method is it has been declared as deprecated even though it still works. Also, it points them here to where things are broken...
from clipboard.
I have the same issue,
I solved it this way:
import {useClipboard} from '@react-native-community/clipboard';
from clipboard.
don't think it's the library issue
try to clean your project(reset metro bundler cache, delete build folder) and do fresh npm install
and pod install
.
That worked for me!
from clipboard.
I'm getting the same issue on iOS 13.6, react-native 0.59 - any workaround?
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.
The same problem with v1.5.1 on android and web app.
I tried to use Clipboard.setString and hook realization, both have this problem.
from clipboard.
I solved it
cd ios && pod install
from clipboard.
Same issue here, using deprecated version from "react-native" temporarily solves my issue.
import { Clipboard } from "react-native"
from clipboard.
the solution is as simple as:
import Clipboard from '@react-native-community/clipboard'
instead of
import { Clipboard } from '@react-native-community/clipboard'
from clipboard.
cd ios && pod install
then yarn start --reset-cache
then remove the app from your simulator or phone and rebuild/reinstall it
from clipboard.
Hi,
Need to release the app so cannot go with deprecated one, please fix this issue ASAP 🙏
from clipboard.
don't think it's the library issue
try to clean your project(reset metro bundler cache, delete build folder) and do freshnpm install
andpod install
.
That worked for me!
Just solved the issue by restart the metro bundler. i.e. re-run react-native start
. Thank you :)
from clipboard.
Seeing the same issue...any word on what causes this? You see it with the useHook
too except you will see it here:
getString: function () {
return NativeClipboard_1.default.getString();
}
from clipboard.
@afreeland Yes, but it's a temporary solution, and until it gets fixed, we are stuck with it😢
from clipboard.
Any update on this issue??... I'm also facing the same issue but only on iOS. It's working correctly on android.
from clipboard.
Any solutions?
from clipboard.
I had the same problem on Android. Solved uninstalling the app and reinstalling it.
This is works for me. But is it safe for production update? I mean when we just add this library and deploy this new updated app to play store
from clipboard.
Facing the same issue...Any update on this?
from clipboard.
For expo users, please use the expo-clipboard
module provided by expo.
For non-expo users, if you're facing the issue, please provide a minimal repository that can reproduce the issue.
from clipboard.
For android use this way: #80 (comment)
from clipboard.
I did these, but problem is not resolved:
- rm -rf node_modules && npm install
- cd android && ./gradlew clean
- cd ios && pod install && cd ..
I Have this error:
TypeError: Cannot read property 'setString' of null
from clipboard.
I solved it by reinstalling the app
from clipboard.
this was solved for me by restarting metro.. ( i was running on IOS thought) i closed the simulator and metro and restarted again using npx react-native run-ios
and it finally worked after hours of trying to figure it out!
FYI, im not using expo though.
from clipboard.
A project clean in xcode and npm start -reset-cache
did it for me.
from clipboard.
Did you all run pod install
before building ? :P This package worked for me on the first try. Didn't need to clean XCode build cache, or npm cache, or removing the app.
from clipboard.
the same issue was fixed by manually linking the package react-native link @react-native-clipboard/clipboard
. I am ushing RN0.60+ in the dox it says it will auto-link but for me, I have to do it manually and it worked
from clipboard.
Here here! Shit. And also, it just suddenly stopped working. I haven't changed versioning. Verify from something like https://framestack.co/components/rainbow-border
I suddenly cannot copy the actual component.
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.