mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Upgrade Prettier from 1.17 to 2.0.2."
Differential Revision: D20639755 fbshipit-source-id: 5028563f9cf0527a30b4259daac50cdc03934bfd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cf44650b3f
commit
0b9ea60b4f
@@ -87,7 +87,7 @@ class AutogrowingTextInputExample extends React.Component<{...}> {
|
||||
step={10}
|
||||
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
|
||||
* found when making Flow check .android.js files. */
|
||||
onValueChange={(value) => this.setState({width: value})}
|
||||
onValueChange={value => this.setState({width: value})}
|
||||
/>
|
||||
<Text>Multiline:</Text>
|
||||
<Switch
|
||||
@@ -96,7 +96,7 @@ class AutogrowingTextInputExample extends React.Component<{...}> {
|
||||
value={this.state.multiline}
|
||||
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
|
||||
* found when making Flow check .android.js files. */
|
||||
onValueChange={(value) => this.setState({multiline: value})}
|
||||
onValueChange={value => this.setState({multiline: value})}
|
||||
/>
|
||||
<Text>TextInput:</Text>
|
||||
<TextInput
|
||||
@@ -108,8 +108,8 @@ class AutogrowingTextInputExample extends React.Component<{...}> {
|
||||
style={[style, {width: this.state.width + '%'}]}
|
||||
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
|
||||
* found when making Flow check .android.js files. */
|
||||
onChangeText={(value) => this.setState({text: value})}
|
||||
onContentSizeChange={(event) =>
|
||||
onChangeText={value => this.setState({text: value})}
|
||||
onContentSizeChange={event =>
|
||||
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
|
||||
* found when making Flow check .android.js files. */
|
||||
this.setState({contentSize: event.nativeEvent.contentSize})
|
||||
@@ -149,7 +149,7 @@ exports.examples = ([
|
||||
...TextInputSharedExamples,
|
||||
{
|
||||
title: 'Colors and text inputs',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -199,7 +199,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Text input, themes and heights',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<TextInput
|
||||
placeholder="If you set height, beware of padding set from themes"
|
||||
@@ -210,7 +210,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'letterSpacing',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -235,7 +235,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Passwords',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -255,7 +255,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Editable',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<TextInput
|
||||
defaultValue="Can't touch this! (>'-')> ^(' - ')^ <('-'<) (>'-')> ^(' - ')^"
|
||||
@@ -267,7 +267,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Multiline',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -309,7 +309,7 @@ exports.examples = ([
|
||||
{
|
||||
title: 'Fixed number of lines',
|
||||
platform: 'android',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -328,7 +328,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Auto-expanding',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<AutogrowingTextInputExample
|
||||
@@ -352,7 +352,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Return key',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
const returnKeyTypes = [
|
||||
'none',
|
||||
'go',
|
||||
@@ -363,7 +363,7 @@ exports.examples = ([
|
||||
'next',
|
||||
];
|
||||
const returnKeyLabels = ['Compile', 'React Native'];
|
||||
const examples = returnKeyTypes.map((type) => {
|
||||
const examples = returnKeyTypes.map(type => {
|
||||
return (
|
||||
<TextInput
|
||||
key={type}
|
||||
@@ -373,7 +373,7 @@ exports.examples = ([
|
||||
/>
|
||||
);
|
||||
});
|
||||
const types = returnKeyLabels.map((type) => {
|
||||
const types = returnKeyLabels.map(type => {
|
||||
return (
|
||||
<TextInput
|
||||
key={type}
|
||||
@@ -393,7 +393,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Inline Images',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<TextInput
|
||||
@@ -417,7 +417,7 @@ exports.examples = ([
|
||||
},
|
||||
{
|
||||
title: 'Toggle Default Padding',
|
||||
render: function (): React.Node {
|
||||
render: function(): React.Node {
|
||||
return <ToggleDefaultPaddingExample />;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user