0.1.11 • Published 4 years ago

@godievski/rn-syntax-highlighter v0.1.11

Weekly downloads
11
License
ISC
Repository
github
Last release
4 years ago

RN Syntax Highlighter

Syntax highlighting component for React Native using react-syntax-highlighter

Install

npm install @godievski/rn-syntax-highlighter --save npx pod-install

Use

props

Accepts almost all of the same props as react-syntax-highlighter with some additional props.

  • fontFamily (string) - the font family to use for syntax text.
  • fontSize (number) - the fontSize for syntax text.
  • dark (boolean) - darkmode for the numbers of the lines
  • startingLineNumber (number) - number from the line numbering will start
  • highligter (string) - 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 react-syntax-highlighter but one of the main uses would be better support for jsx
0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago