Skip to content

Commit 8fc4331

Browse files
committed
test: add tests for smartInsertDelete prop
1 parent 09cfb30 commit 8fc4331

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,4 +906,23 @@ exports.examples = ([
906906
);
907907
},
908908
},
909+
{
910+
title: 'iOS autoformatting behaviors',
911+
render: function (): React.Node {
912+
return (
913+
<View>
914+
<WithLabel label="smartInsertDelete: true | undefined">
915+
<TextInput style={styles.default} defaultValue="CopyAndPaste" />
916+
</WithLabel>
917+
<WithLabel label="smartInsertDelete: false">
918+
<TextInput
919+
smartInsertDelete={false}
920+
style={styles.default}
921+
defaultValue="CopyAndPaste"
922+
/>
923+
</WithLabel>
924+
</View>
925+
);
926+
},
927+
},
909928
]: Array<RNTesterModuleExample>);

0 commit comments

Comments
 (0)