conorhastings / react-native-syntax-highlighter

a syntax highlighter for react native using https://github.com/conorhastings/react-syntax-highlighter under the hood
MIT License
167 stars 25 forks source link

Fix vendor-prefix console errors (react-native-web) #23

Open kylerjensen opened 4 years ago

kylerjensen commented 4 years ago

Hello!

I'm using this library with react-native-web, and I'm experiencing several console errors every time I render one of these components. I have included a copy of the errors and stack traces.

Here's my implementation:

import SyntaxHighlighter from 'react-native-syntax-highlighter`;
import { okaidia } from 'react-syntax-highlighter/dist/styles/prism';

<SyntaxHighlighter style={okaidia} language="tsx" highlighter="prism">
  <PrimaryActionButton title="Button" />
</SyntaxHighlighter>

Dependencies:

Thanks!