mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
JS: Format with Prettier v2.4.1 [3/n]
Summary: Changelog: [General][Internal] Reviewed By: zertosh Differential Revision: D31883447 fbshipit-source-id: cbbf85e4bf935096d242336f41bf0cc5d6f92359
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4e587a1b7d
commit
77ecc7ede1
@@ -332,13 +332,13 @@ exports.examples = ([
|
||||
...TextInputSharedExamples,
|
||||
{
|
||||
title: 'Live Re-Write (ひ -> 日)',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <RewriteExampleKana />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Keyboard Input Accessory View',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInputAccessoryViewChangeTextExample />
|
||||
@@ -349,7 +349,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: "Default Input Accessory View with returnKeyType = 'done'",
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const keyboardTypesWithDoneButton = [
|
||||
'number-pad',
|
||||
'phone-pad',
|
||||
@@ -371,7 +371,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Nested content and `value` property',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="singleline">
|
||||
@@ -397,7 +397,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Keyboard appearance',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const keyboardAppearance = ['default', 'light', 'dark'];
|
||||
const examples = keyboardAppearance.map(type => {
|
||||
return (
|
||||
@@ -411,7 +411,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Return key types',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const returnKeyTypes = [
|
||||
'default',
|
||||
'go',
|
||||
@@ -437,7 +437,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Enable return key automatically',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="true">
|
||||
@@ -452,13 +452,13 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Secure text entry',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <SecureEntryExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Colored input text',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -475,7 +475,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Colored highlight/cursor for text input',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -494,7 +494,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Clear button mode',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const clearButtonModes = [
|
||||
'never',
|
||||
'while-editing',
|
||||
@@ -517,7 +517,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Clear and select',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="clearTextOnFocus">
|
||||
@@ -560,7 +560,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Multiline blur on submit',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -579,7 +579,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Multiline',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -622,7 +622,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'TextInput Intrinsic Size',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<Text>Singleline TextInput</Text>
|
||||
@@ -689,7 +689,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Auto-expanding',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -706,7 +706,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Auto-expanding',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<AutogrowingTextInputExample
|
||||
@@ -737,7 +737,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'TextInput maxLength',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="maxLength: 5">
|
||||
@@ -770,7 +770,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Text Content Type',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="emailAddress">
|
||||
@@ -785,7 +785,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'TextInput Placeholder Styles',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="letterSpacing: 10 lineHeight: 20 textAlign: 'center'">
|
||||
@@ -807,7 +807,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'showSoftInputOnFocus',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="showSoftInputOnFocus: false">
|
||||
|
||||
Reference in New Issue
Block a user