MCPcopy Create free account
hub / github.com/PatoSala/react-native-blocks / CodeBlock

Function CodeBlock

packages/blocks/src/CodeBlock.tsx:8–20  ·  view source on GitHub ↗
({ blockId } : Props)

Source from the content-addressed store, hash-verified

6}
7
8export function CodeBlock({ blockId } : Props) {
9 const { getTextInputProps } = useTextInput(blockId);
10 return (
11 <View style={styles.container}>
12 <View style={styles.code}>
13 <TextInput
14 style={[styles.text]}
15 {...getTextInputProps()}
16 />
17 </View>
18 </View>
19 )
20}
21
22const styles = StyleSheet.create({
23 container: {

Callers

nothing calls this directly

Calls 2

useTextInputFunction · 0.90
getTextInputPropsFunction · 0.85

Tested by

no test coverage detected