expo-clipboard provides an interface for getting and setting Clipboard content on Android, iOS, and Web.
|Android Device||Android Emulator||iOS Device||iOS Simulator||Web|
import Clipboard from 'expo-clipboard';
Gets the content of the user's clipboard. Please note that calling this method on web will prompt the user to grant your app permission to "see text and images copied to the clipboard."
A promise that resolves to the content of the clipboard.
Sets the content of the user's clipboard.
- value (string) -- The string to save to the clipboard.
On web, this retuns a boolean value indicating whether or not the string was saved to the user's clipboard. On iOS and Android, nothing is returned.