UNPKG

@nguyenviet3057/react-native-code-highlighter

Version:
16 lines 735 B
import { type FunctionComponent } from "react"; import { type ScrollViewProps, type StyleProp, type TextStyle, type ViewStyle } from "react-native"; import { type SyntaxHighlighterProps } from "react-syntax-highlighter"; import { type ReactStyle } from "./../utils/styles"; export interface CodeHighlighterProps extends SyntaxHighlighterProps { hljsStyle: ReactStyle; textStyle?: StyleProp<TextStyle>; scrollViewProps?: ScrollViewProps; /** * @deprecated Use scrollViewProps.contentContainerStyle instead */ containerStyle?: StyleProp<ViewStyle>; } export declare const CodeHighlighter: FunctionComponent<CodeHighlighterProps>; export default CodeHighlighter; //# sourceMappingURL=CodeHighlighter.d.ts.map