From 05c4a573f86c2328c78672479603929adb67adc7 Mon Sep 17 00:00:00 2001 From: Romain CLEMENT Date: Mon, 3 Apr 2023 11:34:42 +0200 Subject: [PATCH] Copied title to clipboard --- clip/ClipElement.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clip/ClipElement.tsx b/clip/ClipElement.tsx index 819f803..2ab15a5 100644 --- a/clip/ClipElement.tsx +++ b/clip/ClipElement.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { View, Text } from 'react-native'; +import { View, Text, Clipboard } from 'react-native'; import IconVector from 'react-native-vector-icons/FontAwesome5'; export default class ClipElement extends React.Component { @@ -11,7 +11,7 @@ export default class ClipElement extends React.Component { render(): JSX.Element { return {this.props.title} - + Clipboard.setString(this.props.title)} /> ; } } \ No newline at end of file