mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
50f2dd9cce
Summary: Changelog: [internal] Making "layout" event asynchronous unbatched will bring the behaviour closer to Paper. Paper puts "layout" event in the event queue from ShadowQueue and schedules a flush of event queue on JavaScript queue. Before this, Fabric puts "layout" event in the event queue from JavaScript queue, waits until main run loop is about to go to sleep and then schedules a flush of event queue on JavaScript thread. Now Fabric no longer waits for main run loop to go to sleep but induces a flush of event queue on JavaScript thread right away. Reviewed By: JoshuaGross, shergin Differential Revision: D25849468 fbshipit-source-id: 366e99364507f7bc1d09325c04a604bcb2043e3d