Skip to content

Commit

Permalink
Move showSoftInputOnFocus example to TextInputSharedExamples (#44558
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #44558

Right now this is only exposed to RNTester on iOS, but the prop exists on both platforms.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D57281892

fbshipit-source-id: 9effc2b9c6421f8c74a2f4b933ab0fa0f15e7d70
  • Loading branch information
NickGerleman authored and facebook-github-bot committed May 14, 2024
1 parent 62cbdbb commit 2ad51e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,18 +809,6 @@ const textInputExamples: Array<RNTesterModuleExample> = [
);
},
},
{
title: 'showSoftInputOnFocus',
render: function (): React.Node {
return (
<View>
<WithLabel label="showSoftInputOnFocus: false">
<ExampleTextInput showSoftInputOnFocus={false} />
</WithLabel>
</View>
);
},
},
{
title: 'Line Break Strategy',
render: function (): React.Node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1085,4 +1085,16 @@ module.exports = ([
name: 'textStyles',
render: () => <TextStylesExample />,
},
{
title: 'showSoftInputOnFocus',
render: function (): React.Node {
return (
<View>
<WithLabel label="showSoftInputOnFocus: false">
<ExampleTextInput showSoftInputOnFocus={false} />
</WithLabel>
</View>
);
},
},
]: Array<RNTesterModuleExample>);

0 comments on commit 2ad51e5

Please sign in to comment.