useClipboard | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
useClipboard
useClipboard controls and regulates the copying of content to the clipboard.
Return Value
The useClipboard hook returns an object with the following fields:
value : ( string ) The copied value.
onCopy : ( Function ) Callback function to copy content.
hasCopied : ( boolean ) If true, the content has been copied.
Import
Copy
import { useClipboard } from 'native-base';
Usage
Playground
Nativebase logo
MadeWithNativeBase