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 Jun 7, 2023
1 parent 09cfb30 commit 8fc4331
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 @@ -906,4 +906,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 8fc4331

Please sign in to comment.