mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8f4aed6386
Summary: Changelog: [internal] For React Native classic the behaviour is identical. # Problem `ScrollView.scrollResponderScrollNativeHandleToKeyboard` is broken in new React Native renderer. The behaviour depends on race between two events, `measureLayout` and `keyboardWillShow` event. In the new renderer, `measureLayout` always wins because it is a synchronous call, unlike in React Native classic. To fix this we can just delay execution by wrapping it in `setTimeout`, which puts it on the back of the queue. Reviewed By: JoshuaGross Differential Revision: D27705883 fbshipit-source-id: 7556f86978ca3ccd2fddf1eef2435af26b54f585