Prettier the rest of ReactNative

Reviewed By: yungsters

Differential Revision: D7974340

fbshipit-source-id: 5fe457a8a9be4bd360fc3af9acb5c1136b2be0d7
This commit is contained in:
Eli White authored and Facebook Github Bot committed 2018-05-11 13:52:30 -07:00
1 parent aba4ec0c09
commit 36fcbaa56d
170 files changed
+5132 -3995

No files matched your search

@@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
@@ -34,16 +35,25 @@ var FlexTestApp = createReactClass({
left: 10,
width: 50,
height: 60,
}
},
}),
render: function() {
return (
<View style={this._styles.container} testID="container" collapsable={false}>
<View style={[this._styles.child, {backgroundColor: '#ff0000'}]} collapsable={false}/>
<View style={[this._styles.child, {backgroundColor: '#0000ff'}]} collapsable={false}/>
<View
style={this._styles.container}
testID="container"
collapsable={false}>
<View
style={[this._styles.child, {backgroundColor: '#ff0000'}]}
collapsable={false}
/>
<View
style={[this._styles.child, {backgroundColor: '#0000ff'}]}
collapsable={false}
/>
</View>
);
}
},
});
var FlexWithText = createReactClass({
@@ -65,14 +75,17 @@ var FlexWithText = createReactClass({
}),
render: function() {
return (
<View style={this._styles.container} testID="container" collapsable={false}>
<View
style={this._styles.container}
testID="container"
collapsable={false}>
<View style={this._styles.row} collapsable={false}>
<Text style={this._styles.inner}>Hello</Text>
<Text style={this._styles.inner}>World</Text>
</View>
</View>
);
}
},
});
var AbsolutePositionTestApp = createReactClass({
@@ -84,11 +97,17 @@ var AbsolutePositionTestApp = createReactClass({
left: 10,
width: 50,
height: 60,
}
},
}),
render: function() {
return <View style={this._styles.absolute} testID="absolute" collapsable={false}/>;
}
return (
<View
style={this._styles.absolute}
testID="absolute"
collapsable={false}
/>
);
},
});
var AbsolutePositionBottomRightTestApp = createReactClass({
@@ -104,15 +123,18 @@ var AbsolutePositionBottomRightTestApp = createReactClass({
right: 10,
width: 50,
height: 60,
}
},
}),
render: function() {
return (
<View style={this._styles.container} testID="container" collapsable={false}>
<View style={this._styles.absolute} collapsable={false}/>
<View
style={this._styles.container}
testID="container"
collapsable={false}>
<View style={this._styles.absolute} collapsable={false} />
</View>
);
}
},
});
var CenteredTextView = createReactClass({
@@ -134,11 +156,13 @@ var CenteredTextView = createReactClass({
return (
<View collapsable={false}>
<View style={this._styles.parent} collapsable={false}>
<Text style={this._styles.text} testID="text">{this.props.text}</Text>
<Text style={this._styles.text} testID="text">
{this.props.text}
</Text>
</View>
</View>
);
}
},
});
var flushUpdatePositionInList = null;
@@ -150,11 +174,11 @@ var UpdatePositionInListTestApp = createReactClass({
},
active: {
height: 50,
}
},
}),
getInitialState: function() {
flushUpdatePositionInList = () => this.setState({ active: true });
return { active: false };
flushUpdatePositionInList = () => this.setState({active: true});
return {active: false};
},
render: function() {
return (
@@ -167,10 +191,10 @@ var UpdatePositionInListTestApp = createReactClass({
]}
collapsable={false}
/>
<View style={this._styles.element} collapsable={false}/>
<View style={this._styles.element} collapsable={false} />
</View>
);
}
},
});
var UIManagerTestModule = {
@@ -194,12 +218,12 @@ var UIManagerTestModule = {
},
flushUpdatePositionInList: function() {
flushUpdatePositionInList();
}
},
};
BatchedBridge.registerCallableModule(
'UIManagerTestModule',
UIManagerTestModule
UIManagerTestModule,
);
module.exports = UIManagerTestModule;