You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting component for `React Native` using <ahref='https://github.com/conorhastings/react-syntax-highlighter'> `react-syntax-highlighter`</a>
You can try it out with <ahref='https://expo.io'>Expo</a> <ahref='https://expo.io/@conor/test-native-syntax'>here</a>
9
14
10
15
### Install
@@ -15,16 +20,24 @@ You can try it out with <a href='https://expo.io'>Expo</a> <a href='https://expo
15
20
### Use
16
21
17
22
#### props
18
-
Accepts all of the same props as <ahref='https://github.com/conorhastings/react-syntax-highlighter'> `react-syntax-highlighter`</a> with two additional props.
23
+
Accepts all of the same props as <ahref='https://github.com/conorhastings/react-syntax-highlighter'> `react-syntax-highlighter`</a> with three additional props.
19
24
*`fontFamily` - the font family to use for syntax text.
20
25
*`fontSize` - the fontSize for syntax text.
26
+
*`highligter` - defaults to rendering with vdom created from highlightjs, but can pass in `prism` as alternate option. You can see more about dealing with the prism highlighter in the docs for <ahref='https://github.com/conorhastings/react-syntax-highlighter'>react-syntax-highlighter</a> but one of the main uses would be better support for jsx
0 commit comments