mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
91c5ff4a12
commit
5e472b314b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user