react-native-parsed-text icon indicating copy to clipboard operation
react-native-parsed-text copied to clipboard

could I use it in react for a website

Open eminfan opened this issue 3 years ago • 2 comments

I met an error like below ERROR in ./~/react-native-parsed-text/src/ParsedText.js /react-native-parsed-text/src/ParsedText.js: Unexpected token (23:21) 21 | class ParsedText extends React.Component { 22 |

23 | static displayName = 'ParsedText'; | ^ 24 | 25 | static propTypes = { 26 | ...React.Text.propTypes,

eminfan avatar Jun 12 '22 11:06 eminfan

sb told like this: The static keyword is only for methods in ES6.

Try using const to declare the variable.

it doesn't work for me

eminfan avatar Jun 12 '22 11:06 eminfan

when I change static to const , computer told me parsedText is not a ts file

pls help me

eminfan avatar Jun 12 '22 11:06 eminfan