Skip to content

Commit

Permalink
test: add tests for smartInsertDelete prop
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 committed Feb 9, 2023
1 parent bb900c5 commit afb2f95
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,4 +899,23 @@ exports.examples = ([
);
},
},
{
title: 'iOS autoformatting behaviors',
render: function (): React.Node {
return (
<View>
<WithLabel label="smartInsertDelete: true | undefined">
<TextInput style={styles.default} defaultValue="CopyAndPaste" />
</WithLabel>
<WithLabel label="smartInsertDelete: false">
<TextInput
smartInsertDelete={false}
style={styles.default}
defaultValue="CopyAndPaste"
/>
</WithLabel>
</View>
);
},
},
]: Array<RNTesterModuleExample>);

0 comments on commit afb2f95

Please sign in to comment.