rn-shiki 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rn-shiki",
3
3
  "type": "module",
4
- "version": "0.0.32",
4
+ "version": "0.0.33",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -1,10 +1,9 @@
1
1
  import type { SyntaxHighlighterProps } from 'src/types/shiki'
2
2
  import React from 'react'
3
3
  import { Text, View } from 'react-native'
4
- import githubDark from 'shiki/themes/github-dark.mjs'
5
4
  import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
6
5
 
7
- function SyntaxHighlighter({ text, language, languageId, theme = githubDark }: SyntaxHighlighterProps) {
6
+ function SyntaxHighlighter({ text, language, languageId, theme }: SyntaxHighlighterProps) {
8
7
  const { tokens, error, isLoading } = useSyntaxHighlighter({
9
8
  text,
10
9
  language,
@@ -43,7 +42,6 @@ function SyntaxHighlighter({ text, language, languageId, theme = githubDark }: S
43
42
  ))}
44
43
  <Text
45
44
  style={{
46
- color: theme === githubDark ? '#000000' : '#FFFFFF',
47
45
  fontFamily: 'monospace',
48
46
  }}
49
47
  >