From 5e472b314bd0637f9940a16406754a5d16ef96c8 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Tue, 17 Mar 2020 18:31:57 -0700 Subject: [PATCH] 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 --- Libraries/Components/Switch/Switch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 0a9edc8b60c..caf191c74a9 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -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,