react-native/Libraries
Janic Duplessis 0ed31eb3d6 BREAKING - Improve JS transform validation, add tests
Summary:
This improves JS validations of the transform object and makes it a bit stricter (hence the breaking change). When moving transform objects parsing to native (#10658) the validations got out of sync a bit, this makes sure JS validations are the same or stricter than the native ones to make sure we get consistent errors across platforms.

See #12110 for an example of an error that now gets caught by JS validations.

Also added snapshot tests for the errors to make sure `processTransform` throws when passing invalid values. It only tests the validation since the object parsing is now done natively for iOS and Android.

**Test plan**
Test that there are no errors in UIExplorer
Run new unit tests
Closes https://github.com/facebook/react-native/pull/12115

Differential Revision: D4488933

Pulled By: mkonicek

fbshipit-source-id: a714e6175b2892284a44c870506165099efec1ed
2017-02-02 06:28:31 -08:00
..
ART Better error for ART <Group /> 2016-12-07 17:13:42 -08:00
ActionSheetIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
AdSupport Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Alert Ensure documentation has consistent relative links 2017-01-31 12:13:31 -08:00
Animated Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
AppState docs(AppState.js): update example to ES6 2017-01-23 11:58:33 -08:00
BatchedBridge Remove obsolete mocks 2017-01-26 11:28:33 -08:00
BugReporting RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
CameraRoll Ensure documentation has consistent relative links 2017-01-31 12:13:31 -08:00
Components Document arguments to onSelectionChange 2017-02-02 04:58:38 -08:00
Core Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
CustomComponents Add `style` and `imageStyle` props to Navigation.Header.BackButton 2017-02-02 04:58:38 -08:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Experimental remove max children limitation on SwipeableQuickActions 2017-02-02 05:28:34 -08:00
Geolocation Update Geolocation.js 2017-01-31 11:58:30 -08:00
Image Remove `react-packager` indirection. 2017-02-02 05:44:15 -08:00
Inspector Remove usages of RecyclerViewBackedScrollView in UIExplorer and NetworkOverlay 2017-01-28 10:43:35 -08:00
Interaction Replace jest.resetModuleRegistry() with jest.resetModules() 2016-12-18 17:13:38 -08:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Mention that LayoutAnimation has to be explicitly enabled on A… 2016-11-25 15:28:28 -08:00
Linking Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LinkingIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Modal Add property to force HW acceleration on Android for modal windows 2016-12-14 10:28:33 -08:00
NativeAnimation Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
NavigationExperimental Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
Network Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
Performance Updated Systrace and RCTRenderingPerf to sync w/ React changes 2017-01-22 09:58:32 -08:00
PermissionsAndroid Update PermissionsAndroid docs to use new APIs 2017-01-09 00:43:31 -08:00
PushNotificationIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
RCTTest Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
ReactNative Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
Renderer Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
Sample Fix missing RCTBridgeModule.h 2017-01-31 11:13:50 -08:00
Settings Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Share Update Share.js. Fixed bad grammar 2016-11-23 11:28:29 -08:00
Storage result in RCTAsyncStorage.multiGet could be null. 2016-12-15 22:43:30 -08:00
StyleSheet BREAKING - Improve JS transform validation, add tests 2017-02-02 06:28:31 -08:00
Text Ensure documentation has consistent relative links 2017-01-31 12:13:31 -08:00
Utilities XHR: support typed arrays for request payloads 2017-01-20 18:43:27 -08:00
Vibration Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
WebSocket XHR: support typed arrays for request payloads 2017-01-20 18:43:27 -08:00
react-native BREAKING: Move RecyclerViewBackedScrollView out of open source 2017-02-02 03:44:12 -08:00
vendor RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Promise.js Make onUnhandled safe for undefined errors 2016-08-02 07:58:28 -07:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00