react-native-macos/Libraries/Utilities
Evan Bacon 05d5eeb818 Removed `Platform.web` (#23830)
Summary:
Initially if a `react-native-web` project were to use a library that required internals `expo/webpack-config` would polyfill those internals. This `Platform.web` was used for cases where `react-native` modules needed other internal `react-native` modules, ex: `Animated/src/AnimatedEvent -> Renderer/shims/ReactNative -> Renderer/oss/ReactNativeRenderer-dev -> Core/InitializeCore -> Devtools/setupDevtools -> WebSocket/WebSocket -> Utilities/Platform`

The consensus is that if any `react-native` library references a `react-native` internal (ex: `react-native/*`), it should continue to throw errors. We've removed the use of internals from all of the Unimodules, `react-navigation`, and `react-native-gesture-handler`. This covers a wide enough area for a lot of projects to get web support.

* Add emitters for libs referencing internals necolas/react-native-web#1275
* Remove monkey patch that bundles RN, libs that use internals will crash instead expo/expo-cli#409
* Remove all unsupported internals and polyfills from the Expo suite expo/expo#3676
* Remove internals from react-native-gesture-handler kmagiera/react-native-gesture-handler#406

* Related #23387

[GENERAL] [REMOVED] - Platform.web.js
Pull Request resolved: https://github.com/facebook/react-native/pull/23830

Differential Revision: D14406145

Pulled By: hramos

fbshipit-source-id: bdda99a334d33f5543fdb954eb80e2e7186f985a
2019-03-11 11:38:22 -07:00
..
__mocks__ Allow to create local performance loggers 2019-02-28 03:39:40 -08:00
__tests__ Allow to create local performance loggers 2019-02-28 03:39:40 -08:00
differ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BackHandler.android.js Types for BackHandler 2018-11-06 12:37:31 -08:00
BackHandler.ios.js Types for BackHandler 2018-11-06 12:37:31 -08:00
DeviceInfo.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
Dimensions.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
GlobalPerformanceLogger.js Revert D14186694: [RN] Use global or scoped performance loggers everywhere 2019-03-07 13:12:12 -08:00
HMRClient.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
HMRLoadingView.android.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
HMRLoadingView.ios.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
HMRLoadingView.js Add HMRLoadingView module for web target (#23389) 2019-02-20 18:22:44 -08:00
HeapCapture.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSDevSupportModule.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
MatrixMath.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
PerformanceLoggerContext.js Revert D14186694: [RN] Use global or scoped performance loggers everywhere 2019-03-07 13:12:12 -08:00
PixelRatio.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Platform.android.js Add Flow types for `Platform.select` [5/5] 2018-12-06 02:54:19 -08:00
Platform.ios.js Add Flow types for `Platform.select` [5/5] 2018-12-06 02:54:19 -08:00
PolyfillFunctions.js Fix dev-only redbox in polyfillfunctions 2018-09-12 16:32:50 -07:00
RCTLog.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
ReactNativeTestTools.js eslint: Disable jasmine env and only enable jest env for test files 2018-11-27 03:51:02 -08:00
SceneTracker.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
binaryToBase64.js Deploy 0.94 to xplat 2019-03-06 14:57:30 -08:00
buildStyleInterpolator.js Remove var in Libraries/Utilities/buildStyleInterpolator.js (#22112) 2018-11-04 11:03:09 -08:00
clamp.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
createPerformanceLogger.js Revert D14186694: [RN] Use global or scoped performance loggers everywhere 2019-03-07 13:12:12 -08:00
deepFreezeAndThrowOnMutationInDev.js Remove var in Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js (#22126) 2018-11-05 16:15:54 -08:00
defineLazyObjectProperty.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
deprecatedPropType.js Refactor UIManager view manager accesses 2018-09-27 16:03:22 -07:00
dismissKeyboard.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
groupByEveryN.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
infoLog.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
logError.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
mapWithSeparator.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
mergeIntoFast.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
setAndForwardRef.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
stringifySafe.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
truncate.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
warnOnce.js Introduce generic `warnOnce` function for warning messages (#22109) 2019-02-05 02:24:59 -08:00