react-native-macos/Libraries
Tom Underhill dbe0d7d4b5 Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR. (#28040)
Summary:
The [PlatformColor PR](https://github.com/facebook/react-native/pull/27908) is currently open to implement the [PlatformColor proposal](react-native-community/discussions-and-proposals#126).   When that PR was imported into Facebooks internal builds it was found that the change to the `processColor()` function to return an opaque type or `number` instead of just `number` breaks internal components.

This PR is a simplification of the PlatformColor PR only changing the return type of `processColor()` from `?number` to `?number | NativeColorType` where `NativeColorType` is just an empty but opaque type.   This will allow changes to be made to these internal components but with less risk than the larger PR.

## Changelog

[General] [Changed] - Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR
Pull Request resolved: https://github.com/facebook/react-native/pull/28040

Test Plan: Flow checks, Jest test, iOS unit tests, iOS integration tests, and manual testing performed on RNTester for iOS and Android.

Differential Revision: D19860205

Pulled By: TheSavior

fbshipit-source-id: 799662c6621d3974158b375ccccfa136982c43b4
2020-02-19 19:33:27 -08:00
..
ART iOS: Deprecate iOS 9 / tvOS 9 SDK support 2020-01-02 12:52:12 -08:00
ActionSheetIOS Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR. (#28040) 2020-02-19 19:33:27 -08:00
Alert Remove deprecated support for Alert.prompt with type as Callback 2020-02-06 02:02:31 -08:00
Animated Make JS Animated Driver use forceUpdate in Fabric for list components 2020-02-05 18:38:28 -08:00
AppState TM JS: Revert to import from TurboModuleRegistry.js 2019-11-08 11:44:16 -08:00
BatchedBridge Stub out callFunctionReturnResultAndFlushedQueue 2020-02-06 03:35:32 -08:00
Blob Transform empty responses into empty Blobs 2020-01-27 10:27:14 -08:00
BugReporting Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
CameraRoll iOS: guard image picker logic to check for the right source type 2019-12-20 01:41:02 -08:00
Components Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR. (#28040) 2020-02-19 19:33:27 -08:00
Core Switch to LogBox completely 2020-02-19 18:01:43 -08:00
DeprecatedPropTypes Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
EventEmitter Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
FBLazyVector Remove product/platform/infra layers from ios supermodules 2020-02-12 10:25:27 -08:00
FBReactNativeSpec Remove product/platform/infra layers from ios supermodules 2020-02-12 10:25:27 -08:00
HeapCapture Fix NativeJSCHeapCapture 2020-01-14 08:03:49 -08:00
Image Fix resolving assets outside of the project root (#27932) 2020-02-03 03:15:56 -08:00
Inspector Convert Inspector to call ref.measure 2019-12-17 20:09:25 -08:00
Interaction Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
JSInspector Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
LayoutAnimation Export LayoutAnimationConfig type 2020-01-28 17:10:30 -08:00
Linking Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
LinkingIOS Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00
Lists Fix indentation of inline snapshots in tests 2020-02-03 03:19:10 -08:00
LogBox Remove LogBox.ignoreWarnings 2020-02-19 18:01:43 -08:00
Modal Revert D19235758: Implement onRequestClose for iOS 13+ modals 2020-02-06 14:45:42 -08:00
NativeAnimation Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00
NativeModules/specs Add missing NativeEventListener methods to NativeDevSettings (#27838) 2020-01-23 13:20:53 -08:00
Network Add perf markers in XMLHttpRequest 2020-02-17 07:27:37 -08:00
NewAppScreen Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Performance Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
PermissionsAndroid Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Pressability Pressability: Support Rect or Numeric Size 2020-01-28 15:14:23 -08:00
PushNotificationIOS Resolve and reject promise for PushNotificationIOS.requestPermissions 2020-02-07 08:50:26 -08:00
RCTRequired Remove product/platform/infra layers from ios supermodules 2020-02-12 10:25:27 -08:00
ReactNative Switch to LogBox completely 2020-02-19 18:01:43 -08:00
ReactPrivate Add annotations to ReactNativePrivateInterface 2019-08-22 17:50:36 -07:00
Renderer Partial React Sync from 241c4467...ad84625f8 2020-02-19 15:28:59 -08:00
Settings Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00
Share Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR. (#28040) 2020-02-19 19:33:27 -08:00
Storage Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
StyleSheet Add NativeColorType opaque type to normalizeColor() ahead of PlatformColor PR. (#28040) 2020-02-19 19:33:27 -08:00
SurfaceBackedComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
SurfaceHostingComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
Text Resolve React-RCTText Xcode warning (#28054) 2020-02-13 12:45:08 -08:00
TurboModule Clear some lint warnings (#27893) 2020-01-29 04:36:28 -08:00
TypeSafety Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00
Types Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Utilities Migrate TextInputState to take a ref instead of a reactTag 2020-02-19 15:28:59 -08:00
Vibration Upgrade Folly to v2020.01.13.00 (#27810) 2020-01-21 12:44:00 -08:00
WebSocket Fixes RCTReconnectingWebSocket connecting in infinite loop when stopped before it connects (#26864) 2020-02-11 10:54:39 -08:00
Wrapper Tidy up license headers [3/n] 2019-10-16 10:06:34 -07:00
YellowBox Deprecate YellowBox and unstable_enableLogBox 2020-02-19 18:01:43 -08:00
__flowtests__ Remove ReactNative.NativeComponent from React Native 2020-02-13 15:08:27 -08:00
polyfills Remove groupCollapsed from list of unsupported polyfills 2019-12-06 13:35:47 -08:00
vendor RN: Delete `merge[Into]` 2019-10-12 15:52:27 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Don't crash when pretty-format is not available 2019-11-19 16:22:29 -08:00
UTFSequence.js Clean-up $TEMPORARY$object in xplat/js/react-native-github 2019-08-21 09:58:24 -07:00
promiseRejectionIsError.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00