conorhastings / conorhastings/react-native-syntax-highlighter

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

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
184
Forks
26
PR merge metrics
No merged PRs in 30d

Description

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)](https://github.com/conorhastings/react-native-syntax-highlighter/files/4892758/stack1.txt)
- [ ] Warning: Unsupported vendor-prefixed style property mozTabSize. Did you mean MozTabSize? [(Stack trace)](https://github.com/conorhastings/react-native-syntax-highlighter/files/4892763/stack1.txt)
- [ ] Warning: Unsupported vendor-prefixed style property oTabSize. Did you mean OTabSize? [(Stack trace)](https://github.com/conorhastings/react-native-syntax-highlighter/files/4892765/stack1.txt)
- [ ] Warning: Unsupported vendor-prefixed style property webkitHyphens. Did you mean WebkitHyphens? [(Stack trace)](https://github.com/conorhastings/react-native-syntax-highlighter/files/4892767/stack1.txt)

Here's my implementation:

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

```

Dependencies:

- react@~16.11.0
- react-dom@~16.11.0
- react-native@https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz
- react-native-web@~0.13.0

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.