remove var in ReactAndroid/src/androidTest (#22136)

Summary:
I removed var in ReactAndroid/src/androidTest.

- [x] npm run prettier
- [x] npm run flow-check-ios
- [x] npm run flow-check-android

[GENERAL] [ReactAndroid/src/androidTest] - remove var
Pull Request resolved: https://github.com/facebook/react-native/pull/22136

Differential Revision: D12921227

Pulled By: TheSavior

fbshipit-source-id: 45c03a52a5eafa25965aa785da094421c3df3999
This commit is contained in:
nd-02110114
2018-11-05 00:32:02 -08:00
committed by Facebook Github Bot
parent fbc5a4f5e6
commit 0beb1cc55d
10 changed files with 85 additions and 85 deletions
@@ -47,8 +47,8 @@ class Item extends React.Component<ItemProps, ItemState> {
}
const getInitialState = function() {
var data = [];
for (var i = 0; i < NUM_ITEMS; i++) {
const data = [];
for (let i = 0; i < NUM_ITEMS; i++) {
data[i] = {text: 'Item ' + i + '!'};
}
return {
@@ -101,7 +101,7 @@ class ScrollViewTestApp extends React.Component<Props, State> {
render() {
scrollViewApp = this;
var children = this.state.data.map((item, index) => (
const children = this.state.data.map((item, index) => (
<Item
key={index}
text={item.text}
@@ -135,7 +135,7 @@ class HorizontalScrollViewTestApp extends React.Component<Props, State> {
render() {
scrollViewApp = this;
var children = this.state.data.map((item, index) => (
const children = this.state.data.map((item, index) => (
<Item
key={index}
text={item.text}
@@ -150,7 +150,7 @@ class HorizontalScrollViewTestApp extends React.Component<Props, State> {
}
}
var styles = StyleSheet.create({
const styles = StyleSheet.create({
item_container: {
padding: 30,
backgroundColor: '#ffffff',
@@ -162,7 +162,7 @@ var styles = StyleSheet.create({
},
});
var ScrollViewTestModule = {
const ScrollViewTestModule = {
ScrollViewTestApp: ScrollViewTestApp,
HorizontalScrollViewTestApp: HorizontalScrollViewTestApp,
scrollTo(destX: number, destY: number) {