react-native/React
Martin Kralik a86171a482 exposed a way to trigger layout on the uimanager
Summary:
A component can be backed by native "node" that can change its internal state, which would result in a new UI after the next layout. Since js has no way of knowing that this has happened it wouldn't trigger a layout if nothing in js world has changed. Therefore we need a way how to trigger layout from native code.

This diff does it by adding methods `layoutIfNeeded` on the uimanager and `isBatchActive` on the bridge.
When `layoutIfNeeded` is called it checks whether a batch is in progress. If it is we do nothing, since at it's end layout happens. If a batch is not in progress we immidiately do layout.

I went with the easiest way how to implement this - `isBatchActive` is a public method on the bridge. It's not ideal, but consistent with other methods for modules.
public

Reviewed By: jspahrsummers, nicklockwood

Differential Revision: D2748896

fb-gh-sync-id: f3664c4af980d40a463b538e069b26c9ebad6300
2015-12-11 06:59:30 -08:00
..
Base exposed a way to trigger layout on the uimanager 2015-12-11 06:59:30 -08:00
Executors Rename BridgeProfiling to Systrace for consistency 2015-12-11 03:53:19 -08:00
Layout Fix width being ignored when has a value of 0 2015-09-25 15:42:21 -07:00
Modules exposed a way to trigger layout on the uimanager 2015-12-11 06:59:30 -08:00
Profiler Fixes grammar in comment 2015-12-10 22:52:32 -08:00
React.xcodeproj Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
Views Fix retain cycle 2015-12-10 12:14:34 -08:00