🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@godievski/rn-syntax-highlighter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@godievski/rn-syntax-highlighter

Syntax highlighter for React-Native

latest
Source
npmnpm
Version
0.1.11
Version published
Maintainers
1
Created
Source

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

Keywords

react-native

FAQs

Package last updated on 26 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts