Prettier the rest of ReactNative

Reviewed By: yungsters

Differential Revision: D7974340

fbshipit-source-id: 5fe457a8a9be4bd360fc3af9acb5c1136b2be0d7
This commit is contained in:
Eli White
2018-05-11 13:32:37 -07:00
committed by Facebook Github Bot
parent aba4ec0c09
commit 36fcbaa56d
170 changed files with 5132 additions and 3995 deletions
@@ -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';
@@ -26,9 +27,7 @@ class ViewSampleApp extends React.Component {
state = {};
render() {
return (
<View style={styles.view} collapsable={false}/>
);
return <View style={styles.view} collapsable={false} />;
}
}
@@ -40,7 +39,10 @@ class MarginSampleApp extends React.Component {
render() {
updateMargins = this.setState.bind(this, {margin: 15});
return (
<View style={{margin: this.state.margin, marginLeft: 20}} collapsable={false}/>
<View
style={{margin: this.state.margin, marginLeft: 20}}
collapsable={false}
/>
);
}
}
@@ -48,8 +50,13 @@ class MarginSampleApp extends React.Component {
class BorderSampleApp extends React.Component {
render() {
return (
<View style={{borderLeftWidth: 20, borderWidth: 5, backgroundColor: 'blue'}} collapsable={false}>
<View style={{backgroundColor: 'red', width: 20, height: 20}} collapsable={false}/>
<View
style={{borderLeftWidth: 20, borderWidth: 5, backgroundColor: 'blue'}}
collapsable={false}>
<View
style={{backgroundColor: 'red', width: 20, height: 20}}
collapsable={false}
/>
</View>
);
}
@@ -64,11 +71,9 @@ class TransformSampleApp extends React.Component {
{rotate: '15deg'},
{scaleX: 5},
{scaleY: 10},
]
],
};
return (
<View style={style} collapsable={false}/>
);
return <View style={style} collapsable={false} />;
}
}
@@ -92,7 +97,7 @@ var ViewRenderingTestModule = {
BatchedBridge.registerCallableModule(
'ViewRenderingTestModule',
ViewRenderingTestModule
ViewRenderingTestModule,
);
module.exports = ViewRenderingTestModule;