Skip to content

Commit 5030580

Browse files
jasozhfacebook-github-bot
authored andcommitted
Update descriptions in KeyboardAvoidingViewExample (#58430)
Summary: In the RNTester KeyboardAvoidingView example, fix minor spacing issues and add descriptions for "Keyboard Avoiding View with enabled={false}" and "Keyboard Avoiding View with contentContainerStyle". Changelog: [Internal] Reviewed By: vzaidman Differential Revision: D119204437
1 parent 2364ae1 commit 5030580

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/rn-tester/js/examples/KeyboardAvoidingView/KeyboardAvoidingViewExample.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ exports.examples = [
251251
{
252252
title: 'Keyboard Avoiding View with different behaviors',
253253
description:
254-
('Specify how to react to the presence of the keyboard. Android and iOS both interact' +
254+
('Specify how to react to the presence of the keyboard. Android and iOS both interact ' +
255255
'with this prop differently. On both iOS and Android, setting behavior is recommended.') as string,
256256
render(): React.Node {
257257
return <KeyboardAvoidingViewBehaviour />;
@@ -260,20 +260,23 @@ exports.examples = [
260260
{
261261
title: 'Keyboard Avoiding View with keyboardVerticalOffset={distance}',
262262
description:
263-
('This is the distance between the top of the user screen and the react native' +
263+
('This is the distance between the top of the user screen and the React Native ' +
264264
'view, may be non-zero in some use cases. Defaults to 0.') as string,
265265
render(): React.Node {
266266
return <KeyboardAvoidingVerticalOffset />;
267267
},
268268
},
269269
{
270270
title: 'Keyboard Avoiding View with enabled={false}',
271+
description: 'Disable the KeyboardAvoidingView.' as string,
271272
render(): React.Node {
272273
return <KeyboardAvoidingDisabled />;
273274
},
274275
},
275276
{
276277
title: 'Keyboard Avoiding View with contentContainerStyle',
278+
description:
279+
'Specify the style of the content container View when behavior is set to position.' as string,
277280
render(): React.Node {
278281
return <KeyboardAvoidingContentContainerStyle />;
279282
},

0 commit comments

Comments
 (0)