rn-shiki 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
package/babel.config.js
CHANGED
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { LanguageInput, ThemeInput } from 'shiki'
|
2
|
-
import typescript from '@vendor/shiki/langs/typescript'
|
3
|
-
import githubDark from '@vendor/shiki/themes/github-dark'
|
4
2
|
import React from 'react'
|
5
3
|
import { Text, View } from 'react-native'
|
6
4
|
import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
|
5
|
+
import typescript from '../../vendor/shiki/langs/typescript'
|
6
|
+
import githubDark from '../../vendor/shiki/themes/github-dark'
|
7
7
|
|
8
8
|
interface SyntaxHighlighterProps {
|
9
9
|
text: string
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { LanguageInput, ThemedToken, ThemeInput } from 'shiki'
|
2
2
|
import type { TokenType } from '../../types'
|
3
|
-
import { createHighlighterCore
|
3
|
+
import { createHighlighterCore } from '../../vendor/shiki/core/core'
|
4
|
+
import { createJavaScriptRegexEngine } from '../../vendor/shiki/core/engine-javascript'
|
4
5
|
|
5
6
|
async function initializeHighlighter(langs: LanguageInput[], themes: ThemeInput[]): Promise<Awaited<ReturnType<typeof createHighlighterCore>>> {
|
6
7
|
return createHighlighterCore({
|