From d8830fb2b8177ae793b7d0ab18a140363b2a3460 Mon Sep 17 00:00:00 2001 From: trave7er Date: Sat, 9 Jan 2016 01:34:27 -0800 Subject: [PATCH] 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 --- Examples/UIExplorer/AlertIOSExample.js | 10 +++++----- .../PullToRefreshViewAndroidExample.android.js | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Examples/UIExplorer/AlertIOSExample.js b/Examples/UIExplorer/AlertIOSExample.js index 117c4cfe3..015d68a18 100644 --- a/Examples/UIExplorer/AlertIOSExample.js +++ b/Examples/UIExplorer/AlertIOSExample.js @@ -55,7 +55,7 @@ exports.examples = [{ {'default'} - + - + - + - + ); @@ -118,7 +118,7 @@ exports.examples = [{ { title: 'Prompt', render(): React.Component { - return + return ; } }]; diff --git a/Examples/UIExplorer/PullToRefreshViewAndroidExample.android.js b/Examples/UIExplorer/PullToRefreshViewAndroidExample.android.js index 307fe2cde..3d22f7608 100644 --- a/Examples/UIExplorer/PullToRefreshViewAndroidExample.android.js +++ b/Examples/UIExplorer/PullToRefreshViewAndroidExample.android.js @@ -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({