Remove var in RNTester (#22016)

Summary:
I removed `var` in RNTester.

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

[GENERAL] [ENHANCEMENT] [RNTester] - remove `var`
Pull Request resolved: https://github.com/facebook/react-native/pull/22016

Differential Revision: D12843122

Pulled By: TheSavior

fbshipit-source-id: 7e207366c457f0bda707773e9de02fe5afdbb144
This commit is contained in:
nd-02110114
2018-10-30 14:29:54 -07:00
committed by Facebook Github Bot
parent 6b29b908dd
commit 791fa2d83a
15 changed files with 57 additions and 63 deletions

View File

@@ -10,9 +10,9 @@
'use strict';
var React = require('react');
var ReactNative = require('react-native');
var {Slider, Text, StyleSheet, View} = ReactNative;
const React = require('react');
const ReactNative = require('react-native');
const {Slider, Text, StyleSheet, View} = ReactNative;
class SliderExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
static defaultProps = {
@@ -68,7 +68,7 @@ class SlidingCompleteExample extends React.Component<
}
}
var styles = StyleSheet.create({
const styles = StyleSheet.create({
slider: {
height: 10,
margin: 10,