Skip to content

Commit

Permalink
Add multiline colored hightlight example for TextInput.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Apr 13, 2023
1 parent 6f0b5bd commit 5223fc7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ exports.examples = ([
},
},
{
title: 'Colored highlight/cursor for text input',
title: 'Colored highlight for text input',
render: function (): React.Node {
return (
<View>
Expand Down Expand Up @@ -767,6 +767,27 @@ exports.examples = ([
);
},
},
{
title: 'Multiline colored highlight for text input',
render: function (): React.Node {
return (
<View>
<TextInput
style={styles.multiline}
selectionColor={'green'}
defaultValue="Highlight me"
multiline={true}
/>
<TextInput
style={styles.multiline}
selectionColor={'rgba(86, 76, 205, 1)'}
defaultValue="Highlight me"
multiline={true}
/>
</View>
);
},
},
{
title: 'Editable and Read only',
render: function (): React.Node {
Expand Down

0 comments on commit 5223fc7

Please sign in to comment.