Copied title to clipboard
This commit is contained in:
parent
7db1a7e3d3
commit
05c4a573f8
@ -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<any, any> {
|
||||
@ -11,7 +11,7 @@ export default class ClipElement extends React.Component<any, any> {
|
||||
render(): JSX.Element {
|
||||
return <View style={{flex:1,margin:10,flexDirection:'row',justifyContent:'space-between',alignItems:'center'}}>
|
||||
<Text style={{fontSize:20,}}>{this.props.title}</Text>
|
||||
<IconVector name="clipboard" size={40} />
|
||||
<IconVector name="clipboard" size={40} onPress={() => Clipboard.setString(this.props.title)} />
|
||||
</View>;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user