react-native/Libraries/ReactNative
Alexsander Akers 02db374e50 [React Native] Remove layout-only nodes (Take 2!)
Summary:
Remove layout-only views. Works by checking properties against a list of known properties that only affect layout. The `RCTShadowView` hierarchy still has a 1:1 correlation with the JS nodes.

This works by adjusting the tags and indices in `manageChildren`. For example, if JS told us to insert tag 1 at index 0 and tag 1 is layout-only with children whose tags are 2 and 3, we adjust it so we insert tags 2 and 3 at indices 0 and 1. This keeps changes out of `RCTView` and `RCTScrollView`. In order to simplify this logic, view moves are now processed as view removals followed by additions. A move from index 0 to 1 is recorded as a removal of view at indices 0 and 1 and an insertion of tags 1 and 2 at indices 0 and 1. Of course, the remaining indices have to be offset to take account for this.

The `collapsible` attribute is a bit of a hack to force `RCTScrollView` to always have one child. This was easier than rethinking out the logic there, but we could change this later.
2015-07-07 05:06:50 -08:00
..
React.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNative.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNativeBaseComponent.js [react_native] JS files from D2163804: [react_native] Add native root tag to createView calls 2015-06-18 05:26:41 -08:00
ReactNativeBaseComponentEnvironment.js [ReactNative] Rename ReactIOS JS module (and relatives) to ReactNative. 2015-05-13 13:24:35 -07:00
ReactNativeDOMIDOperations.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNativeDefaultInjection.js [ReactNative] Remove RCTJSTimers 2015-06-15 10:50:28 -08:00
ReactNativeEventEmitter.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNativeGlobalInteractionHandler.js [ReactNative] Rename ReactIOS JS module (and relatives) to ReactNative. 2015-05-13 13:24:35 -07:00
ReactNativeGlobalResponderHandler.js [ReactNative] Block native from becoming js responder 2015-06-19 16:30:15 -08:00
ReactNativeMount.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNativeReconcileTransaction.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactNativeStyleAttributes.js [ReactNative] Allow decomposedMatrix style property to go to native view 2015-05-28 09:32:50 -08:00
ReactNativeTagHandles.js [react_native] JS files from D2163804: [react_native] Add native root tag to createView calls 2015-06-18 05:26:41 -08:00
ReactNativeTextComponent.js [react_native] JS files from D2163804: [react_native] Add native root tag to createView calls 2015-06-18 05:26:41 -08:00
ReactNativeViewAttributes.js [React Native] Remove layout-only nodes (Take 2!) 2015-07-07 05:06:50 -08:00
createReactNativeComponentClass.js [Flow] Fix or suppress react-native github errors for Flow v0.12.0 2015-06-10 13:34:19 -08:00
findNodeHandle.js [react-native] Add React.findNodeHandle 2015-05-13 13:24:37 -07:00