mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 15:42:24 +00:00
@@ -27,8 +27,9 @@ export default class Clipboard {
|
|||||||
// add the text to a hidden node
|
// add the text to a hidden node
|
||||||
const node = document.createElement('span');
|
const node = document.createElement('span');
|
||||||
node.textContent = text;
|
node.textContent = text;
|
||||||
node.style.position = 'absolute';
|
|
||||||
node.style.opacity = '0';
|
node.style.opacity = '0';
|
||||||
|
node.style.position = 'absolute';
|
||||||
|
node.style.whiteSpace = 'pre-wrap';
|
||||||
body.appendChild(node);
|
body.appendChild(node);
|
||||||
|
|
||||||
// select the text
|
// select the text
|
||||||
|
|||||||
Reference in New Issue
Block a user