Skip to content

Commit 5a4a348

Browse files
committed
add an extra example to tester app
1 parent 443c3c1 commit 5a4a348

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js

+21
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,27 @@ const textInputExamples: Array<RNTesterModuleExample> = [
681681
placeholder="Placeholder defines intrinsic size"
682682
/>
683683
</View>
684+
<RNTesterText>Singleline TextInput with text styles</RNTesterText>
685+
<View style={{height: 130}}>
686+
<ExampleTextInput
687+
style={{
688+
position: 'absolute',
689+
fontSize: 16,
690+
backgroundColor: '#eeeeee',
691+
borderColor: '#666666',
692+
borderWidth: 5,
693+
borderTopWidth: 20,
694+
borderRadius: 10,
695+
borderBottomRightRadius: 20,
696+
padding: 10,
697+
paddingTop: 20,
698+
lineHeight: 18,
699+
height: '100%',
700+
}}
701+
testID="singleline_textinput_with_text_styling"
702+
placeholder="Placeholder defines intrinsic size & text styling"
703+
/>
704+
</View>
684705
<RNTesterText>Multiline TextInput</RNTesterText>
685706
<View style={{height: 80}}>
686707
<ExampleTextInput

0 commit comments

Comments
 (0)