fix lint warnings: white spaces and es6 arrow func
Summary: fixed some lint warnings: semi-colons, white spaces, and es6 arrow function syntax Closes https://github.com/facebook/react-native/pull/5218 Reviewed By: svcscm Differential Revision: D2818388 Pulled By: androidtrunkagent fb-gh-sync-id: 812792dfae87d117fd7a5ffc6faa375c161c3b15
This commit is contained in:
parent
73be933d09
commit
d8830fb2b8
|
@ -55,7 +55,7 @@ exports.examples = [{
|
|||
{'default'}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
|
||||
</TouchableHighlight>
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
|
@ -73,7 +73,7 @@ exports.examples = [{
|
|||
plain-text
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
|
||||
</TouchableHighlight>
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
|
@ -91,7 +91,7 @@ exports.examples = [{
|
|||
secure-text
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
|
||||
</TouchableHighlight>
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
|
@ -109,7 +109,7 @@ exports.examples = [{
|
|||
login-password
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
|
||||
</TouchableHighlight>
|
||||
</View>
|
||||
);
|
||||
|
@ -118,7 +118,7 @@ exports.examples = [{
|
|||
{
|
||||
title: 'Prompt',
|
||||
render(): React.Component {
|
||||
return <PromptExample />
|
||||
return <PromptExample />;
|
||||
}
|
||||
}];
|
||||
|
||||
|
|
|
@ -72,7 +72,8 @@ const PullToRefreshViewAndroidExample = React.createClass({
|
|||
isRefreshing: false,
|
||||
loaded: 0,
|
||||
rowData: Array.from(new Array(20)).map(
|
||||
(val, i) => {return {text: 'Initial row' + i, clicks: 0}}),
|
||||
(val, i) => ({text: 'Initial row' + i, clicks: 0})
|
||||
),
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -107,10 +108,10 @@ const PullToRefreshViewAndroidExample = React.createClass({
|
|||
setTimeout(() => {
|
||||
// prepend 10 items
|
||||
const rowData = Array.from(new Array(10))
|
||||
.map((val, i) => {return {
|
||||
.map((val, i) => ({
|
||||
text: 'Loaded row' + (+this.state.loaded + i),
|
||||
clicks: 0,
|
||||
}})
|
||||
}))
|
||||
.concat(this.state.rowData);
|
||||
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in New Issue