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