Skip to content

react-native-hooks/clipboard

Repository files navigation

@rnhooks/clipboard Build Status Maintainability module formats: umd, cjs, esm

React Native hook for Clipboard

import useClipboard from '@rnhooks/clipboard';

function App() {
  const [content, updateContent] = useClipboard();

  return (
    <View style={styles.container}>
      <Text style={styles.type}>{`Content: ${content}`}</Text>
      <Button title="Update" onPress={() => updateContent('test string')} />
    </View>
  );
}

Output

Name Type Default Description
content String null Clipboard content string
updateContent function () => {} Clipboard content string update function

Contribution

Questions

Feel free to contact me or create an issue

About

React Native hook for Clipboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published