Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
kylerjensen opened this issue Jul 8, 2020 · 0 comments
Open
4 tasks

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

kylerjensen opened this issue Jul 8, 2020 · 0 comments

Comments

@kylerjensen
Copy link

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.

  • Warning: Unsupported vendor-prefixed style property mozHyphens. Did you mean MozHyphens? (Stack trace)
  • Warning: Unsupported vendor-prefixed style property mozTabSize. Did you mean MozTabSize? (Stack trace)
  • Warning: Unsupported vendor-prefixed style property oTabSize. Did you mean OTabSize? (Stack trace)
  • Warning: Unsupported vendor-prefixed style property webkitHyphens. Did you mean WebkitHyphens? (Stack trace)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant