chore(switch): migrate to es6 import/export (#28333)

Summary:
Migrate Switch component to use ES6 import/exports

motivation: trying to slowly migrate each files to use es6 import/exports to make this discussion happen
https://github.com/react-native-community/discussions-and-proposals/issues/201#issuecomment-588454552

## Changelog

[General] [Changed] - Use es6 import/export syntax for Switch component
Pull Request resolved: https://github.com/facebook/react-native/pull/28333

Test Plan: Test on RNTester

Reviewed By: TheSavior

Differential Revision: D20493110

Pulled By: hramos

fbshipit-source-id: 25279ec41955b0dbda1abab6e45b93ca1c28fa32
This commit is contained in:
Jesse Katsumata
2020-03-17 18:35:22 -07:00
committed by Facebook GitHub Bot
parent 91c5ff4a12
commit 5e472b314b
+3 -3
View File
@@ -11,9 +11,9 @@
'use strict';
const Platform = require('../../Utilities/Platform');
const React = require('react');
const StyleSheet = require('../../StyleSheet/StyleSheet');
import Platform from '../../Utilities/Platform';
import * as React from 'react';
import StyleSheet from '../../StyleSheet/StyleSheet';
import AndroidSwitchNativeComponent, {
Commands as AndroidSwitchCommands,