Skip to content

Commit d8830fb

Browse files
trave7erfacebook-github-bot-7
authored andcommitted
fix lint warnings: white spaces and es6 arrow func
Summary: fixed some lint warnings: semi-colons, white spaces, and es6 arrow function syntax Closes facebook#5218 Reviewed By: svcscm Differential Revision: D2818388 Pulled By: androidtrunkagent fb-gh-sync-id: 812792dfae87d117fd7a5ffc6faa375c161c3b15
1 parent 73be933 commit d8830fb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Examples/UIExplorer/AlertIOSExample.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exports.examples = [{
5555
{'default'}
5656
</Text>
5757
</View>
58-
58+
5959
</TouchableHighlight>
6060
<TouchableHighlight
6161
style={styles.wrapper}
@@ -73,7 +73,7 @@ exports.examples = [{
7373
plain-text
7474
</Text>
7575
</View>
76-
76+
7777
</TouchableHighlight>
7878
<TouchableHighlight
7979
style={styles.wrapper}
@@ -91,7 +91,7 @@ exports.examples = [{
9191
secure-text
9292
</Text>
9393
</View>
94-
94+
9595
</TouchableHighlight>
9696
<TouchableHighlight
9797
style={styles.wrapper}
@@ -109,7 +109,7 @@ exports.examples = [{
109109
login-password
110110
</Text>
111111
</View>
112-
112+
113113
</TouchableHighlight>
114114
</View>
115115
);
@@ -118,7 +118,7 @@ exports.examples = [{
118118
{
119119
title: 'Prompt',
120120
render(): React.Component {
121-
return <PromptExample />
121+
return <PromptExample />;
122122
}
123123
}];
124124

Examples/UIExplorer/PullToRefreshViewAndroidExample.android.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const PullToRefreshViewAndroidExample = React.createClass({
7272
isRefreshing: false,
7373
loaded: 0,
7474
rowData: Array.from(new Array(20)).map(
75-
(val, i) => {return {text: 'Initial row' + i, clicks: 0}}),
75+
(val, i) => ({text: 'Initial row' + i, clicks: 0})
76+
),
7677
};
7778
},
7879

@@ -107,10 +108,10 @@ const PullToRefreshViewAndroidExample = React.createClass({
107108
setTimeout(() => {
108109
// prepend 10 items
109110
const rowData = Array.from(new Array(10))
110-
.map((val, i) => {return {
111+
.map((val, i) => ({
111112
text: 'Loaded row' + (+this.state.loaded + i),
112113
clicks: 0,
113-
}})
114+
}))
114115
.concat(this.state.rowData);
115116

116117
this.setState({

0 commit comments

Comments
 (0)