Answers for "copy text on button click in react native"

1

create copy button react native

import Clipboard from '@react-native-community/clipboard';

<TouchableOpacity onPress={() => Clipboard.setString('[email protected]')}>
  <View>
    <Text style={{color: 'red', fontSize: 14 , fontFamily:'Arial', fontStyle: 'bold', textAlign: 'center', marginTop: 3, marginLeft: 25, marginBottom: 17}}> 
                [email protected]
    </Text>
  </View>
</TouchableOpacity>
Posted by: Guest on September-08-2021

Code answers related to "copy text on button click in react native"

Browse Popular Code Answers by Language