mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
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:
committed by
Facebook Github Bot
parent
6b29b908dd
commit
791fa2d83a
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user