Skip to content

Commit 0e067f4

Browse files
committed
dev: add input to Playground
1 parent 2acc432 commit 0e067f4

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

packages/rn-tester/js/examples/Playground/RNTesterPlayground.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ import type {RNTesterModuleExample} from '../../types/RNTesterTypes';
1313

1414
import RNTesterText from '../../components/RNTesterText';
1515
import * as React from 'react';
16-
import {StyleSheet, View} from 'react-native';
16+
import {StyleSheet, View, TextInput} from 'react-native';
1717

1818
function Playground() {
1919
return (
2020
<View style={styles.container}>
2121
<RNTesterText>
2222
Edit "RNTesterPlayground.js" to change this file
2323
</RNTesterText>
24+
25+
<TextInput
26+
style={styles.input}
27+
placeholder="test"
28+
disableKeyboardShortcuts
29+
/>
2430
</View>
2531
);
2632
}
@@ -29,6 +35,12 @@ const styles = StyleSheet.create({
2935
container: {
3036
padding: 10,
3137
},
38+
input: {
39+
width: '100%',
40+
height: 40,
41+
borderColor: 'gray',
42+
borderWidth: 1,
43+
},
3244
});
3345

3446
export default ({

0 commit comments

Comments
 (0)