react-native-code-edit
Version:
A lightweight code editor for React Native
12 lines (11 loc) • 419 B
TypeScript
import { FC } from "react";
interface ICodeEditorProps {
/** Optional language for syntax highlighting */
language?: "java" | "javascript";
/** Optionally set the initial value of the editor */
initialValue?: string;
/** Optional callback called with the current value of the editor */
onChange?(value: string): void;
}
declare const CodeEditor: FC<ICodeEditorProps>;
export default CodeEditor;