useClipboard | NativeBase | Universal Components for React and React Native

Search
K
Hire us
IMPORTANT MESSAGE — If you are starting a new project with NativeBase, we recommend using gluestack-ui instead.
Explore gluestack-ui
useClipboard
useClipboard is a custom hook that handles copying content to 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