mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 22:55:19 +08:00
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:
committed by
facebook-github-bot-7
parent
73be933d09
commit
d8830fb2b8
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user