0.0.2 • Published 4 months ago
react-native-live-code v0.0.2
react-native-live-code is an lightweighted React Native editor with live preview. it is ideal for quick UI component prototyping or educational purposes. The live editor supports TypeScript.
Usage
react-native-live-code offers two UI components: RNLiveCodeRenderer
and RNLiveCodeEditor
. Additionally, RNLiveCodeProvider is required as a container for these components for communication of content and error in live editing.
...
<div className="App-container">
<RNLiveCodeProvider defaultCode={defaultCode}>
<RNLiveCodeRenderer />
<RNLiveCodeEditor />
</RNLiveCodeProvider>
</div>
...