react-native/Libraries/ReactNative
Sebastian Markbage 433fb336af Refactor Attribute Processing (Step 4)
Summary:This avoids flattening styles in most common cases. It diffs against the nested
arrays. The special case is when a property gets removed, it creates an object
that stores the removed keys which then gets resolved using a second pass
through the nested array.

You can conceptually think of this algorithm as:
1) Diff and store changes as you go
2) If something was removed, flatten as necessary

I also merged in another commit that renames the StyleSheetRegistry to ReactNativePropRegistry. There is nothing in here that makes it specific to styles anymore. That's just a decoupled view attribute configuration option. This registry can be used for any set of nested props, if we even want to keep this feature at all.

Reviewed By: vjeux

Differential Revision: D2492885

fb-gh-sync-id: c976ac28b7e63545132c36da0ee0c1c562e7c9e5
shipit-source-id: c976ac28b7e63545132c36da0ee0c1c562e7c9e5
2016-03-24 15:13:24 -07:00
..
__benchmarks__ Add List of Common Cases to AttributePayload Benchmark 2015-10-09 14:31:23 -07:00
__tests__ Refactor Attribute Processing (Step 4) 2016-03-24 15:13:24 -07:00
React.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactDOM.js Fix open source 2015-11-07 11:41:20 -08:00
ReactNative.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeAttributePayload.js Refactor Attribute Processing (Step 4) 2016-03-24 15:13:24 -07:00
ReactNativeBaseComponent.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeBaseComponentEnvironment.js [ReactNative] Rename ReactIOS JS module (and relatives) to ReactNative. 2015-05-13 13:24:35 -07:00
ReactNativeDOMIDOperations.js revert D2707930 2015-12-03 18:29:28 -08:00
ReactNativeDefaultInjection.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeEventEmitter.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeGlobalInteractionHandler.js [ReactNative] Rename ReactIOS JS module (and relatives) to ReactNative. 2015-05-13 13:24:35 -07:00
ReactNativeGlobalResponderHandler.js Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
ReactNativeMount.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativePropRegistry.js Refactor Attribute Processing (Step 4) 2016-03-24 15:13:24 -07:00
ReactNativeReconcileTransaction.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
ReactNativeTagHandles.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeTextComponent.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
UIManagerStatTracker.js Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
createReactNativeComponentClass.js Update FBSource to use Flow 0.22 2016-03-08 12:39:29 -08:00
findNodeHandle.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00