From 9c033a4b5adf7d956e06624091eafade16eb32ec Mon Sep 17 00:00:00 2001 From: smartDev420 Date: Fri, 28 Jun 2019 10:30:32 -0700 Subject: [PATCH] [change] Remove CameraRoll Ref #1352 Ref /~https://github.com/facebook/react-native/issues/23313 --- README.md | 1 - packages/babel-plugin-react-native-web/src/moduleMap.js | 1 - packages/react-native-web/src/exports/CameraRoll/index.js | 1 - packages/react-native-web/src/index.js | 2 -- 4 files changed, 5 deletions(-) delete mode 100644 packages/react-native-web/src/exports/CameraRoll/index.js diff --git a/README.md b/README.md index 3942ea19..8692d3c7 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,6 @@ React Native v0.55 | AppRegistry | ✓ | Includes additional support for server rendering with `getApplication`. | | AppState | ✓ | | | BackHandler | (✓) | Mock. No equivalent web APIs. | -| CameraRoll | ✘ | No equivalent web APIs. | | Clipboard | ✓ | | | ColorPropType | ✓ | | | DeviceInfo | (✓) | Limited information. | diff --git a/packages/babel-plugin-react-native-web/src/moduleMap.js b/packages/babel-plugin-react-native-web/src/moduleMap.js index af1883d1..548a2220 100644 --- a/packages/babel-plugin-react-native-web/src/moduleMap.js +++ b/packages/babel-plugin-react-native-web/src/moduleMap.js @@ -8,7 +8,6 @@ module.exports = { AppState: true, BackHandler: true, Button: true, - CameraRoll: true, CheckBox: true, Clipboard: true, ColorPropType: true, diff --git a/packages/react-native-web/src/exports/CameraRoll/index.js b/packages/react-native-web/src/exports/CameraRoll/index.js deleted file mode 100644 index ff8b4c56..00000000 --- a/packages/react-native-web/src/exports/CameraRoll/index.js +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/react-native-web/src/index.js b/packages/react-native-web/src/index.js index d23b2de1..e313513c 100644 --- a/packages/react-native-web/src/index.js +++ b/packages/react-native-web/src/index.js @@ -89,7 +89,6 @@ import ToolbarAndroid from './exports/ToolbarAndroid'; import ViewPagerAndroid from './exports/ViewPagerAndroid'; import WebView from './exports/WebView'; // compat (apis) -import CameraRoll from './exports/CameraRoll'; import DatePickerAndroid from './exports/DatePickerAndroid'; import ImagePickerIOS from './exports/ImagePickerIOS'; import PermissionsAndroid from './exports/PermissionsAndroid'; @@ -194,7 +193,6 @@ export { ViewPagerAndroid, WebView, // compat (apis) - CameraRoll, DatePickerAndroid, ImagePickerIOS, PermissionsAndroid,