We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2200989 commit 30f0e10Copy full SHA for 30f0e10
2 files changed
src/index.ts
@@ -1,7 +1,8 @@
1
import CodeHighlighter, {
2
type CodeHighlighterProps,
3
} from "./lib/CodeHighlighter";
4
+import type { ReactStyle } from "./utils/styles";
5
-export type { CodeHighlighterProps };
6
+export type { CodeHighlighterProps, ReactStyle };
7
8
export default CodeHighlighter;
src/utils/styles.ts
@@ -3,7 +3,9 @@ import type { CSSProperties } from "react";
import type { TextStyle } from "react-native";
export type HighlighterStyleSheet = { [key: string]: TextStyle };
-export type ReactStyle = Record<string, CSSProperties>;
+export type ReactStyle = {
+ [key: string]: React.CSSProperties;
+};
9
10
const ALLOWED_STYLE_PROPERTIES: Record<string, boolean> = {
11
color: true,
0 commit comments