Answers for "react native copy to clipboard button"

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
1

react copy to clipboard button

<buttononClick={() => navigator.clipboard.writeText("Copy this text to clipboard")}>
  Copy
</button>
Posted by: Guest on January-29-2021

Code answers related to "react native copy to clipboard button"

Browse Popular Code Answers by Language