({ blockId } : Props)
| 6 | } |
| 7 | |
| 8 | export 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 | |
| 22 | const styles = StyleSheet.create({ |
| 23 | container: { |
nothing calls this directly
no test coverage detected