From a2d34e9c5159238b6d8d43a3cca742161111fdc3 Mon Sep 17 00:00:00 2001 From: smartDev420 Date: Fri, 28 Jun 2019 10:37:28 -0700 Subject: [PATCH] [change] Remove DatePickerAndroid and DatePickerIOS Ref #1352 Ref /~https://github.com/facebook/react-native/issues/23313 --- packages/babel-plugin-react-native-web/src/moduleMap.js | 2 -- .../react-native-web/src/exports/DatePickerAndroid/index.js | 1 - packages/react-native-web/src/exports/DatePickerIOS/index.js | 2 -- packages/react-native-web/src/index.js | 4 ---- 4 files changed, 9 deletions(-) delete mode 100644 packages/react-native-web/src/exports/DatePickerAndroid/index.js delete mode 100644 packages/react-native-web/src/exports/DatePickerIOS/index.js diff --git a/packages/babel-plugin-react-native-web/src/moduleMap.js b/packages/babel-plugin-react-native-web/src/moduleMap.js index 548a2220..e9626533 100644 --- a/packages/babel-plugin-react-native-web/src/moduleMap.js +++ b/packages/babel-plugin-react-native-web/src/moduleMap.js @@ -11,8 +11,6 @@ module.exports = { CheckBox: true, Clipboard: true, ColorPropType: true, - DatePickerAndroid: true, - DatePickerIOS: true, DeviceEventEmitter: true, DeviceInfo: true, Dimensions: true, diff --git a/packages/react-native-web/src/exports/DatePickerAndroid/index.js b/packages/react-native-web/src/exports/DatePickerAndroid/index.js deleted file mode 100644 index ff8b4c56..00000000 --- a/packages/react-native-web/src/exports/DatePickerAndroid/index.js +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/react-native-web/src/exports/DatePickerIOS/index.js b/packages/react-native-web/src/exports/DatePickerIOS/index.js deleted file mode 100644 index 9cd4039d..00000000 --- a/packages/react-native-web/src/exports/DatePickerIOS/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import UnimplementedView from '../../modules/UnimplementedView'; -export default UnimplementedView; diff --git a/packages/react-native-web/src/index.js b/packages/react-native-web/src/index.js index e313513c..210d75f2 100644 --- a/packages/react-native-web/src/index.js +++ b/packages/react-native-web/src/index.js @@ -71,7 +71,6 @@ import EdgeInsetsPropType from './exports/EdgeInsetsPropType'; import PointPropType from './exports/PointPropType'; // compat (components) -import DatePickerIOS from './exports/DatePickerIOS'; import DrawerLayoutAndroid from './exports/DrawerLayoutAndroid'; import ImageEditor from './exports/ImageEditor'; import ImageStore from './exports/ImageStore'; @@ -89,7 +88,6 @@ import ToolbarAndroid from './exports/ToolbarAndroid'; import ViewPagerAndroid from './exports/ViewPagerAndroid'; import WebView from './exports/WebView'; // compat (apis) -import DatePickerAndroid from './exports/DatePickerAndroid'; import ImagePickerIOS from './exports/ImagePickerIOS'; import PermissionsAndroid from './exports/PermissionsAndroid'; import PushNotificationIOS from './exports/PushNotificationIOS'; @@ -175,7 +173,6 @@ export { EdgeInsetsPropType, PointPropType, // compat (components) - DatePickerIOS, DrawerLayoutAndroid, ImageEditor, ImageStore, @@ -193,7 +190,6 @@ export { ViewPagerAndroid, WebView, // compat (apis) - DatePickerAndroid, ImagePickerIOS, PermissionsAndroid, PushNotificationIOS,