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 {SegmentedControlIOS, Text, View, StyleSheet} = ReactNative;
const React = require('react');
const ReactNative = require('react-native');
const {SegmentedControlIOS, Text, View, StyleSheet} = ReactNative;
class BasicSegmentedControlExample extends React.Component<{}> {
render() {
@@ -132,7 +132,7 @@ class EventSegmentedControlExample extends React.Component<
};
}
var styles = StyleSheet.create({
const styles = StyleSheet.create({
text: {
fontSize: 14,
textAlign: 'center',