mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-17 09:29:14 +08:00
Summary: This diff fixes a NPE that can occur when we force the dispatching of events when the EventDispatcher is not initized. The fix consists on avoid posting the frame callback, if the internals of EventDispatcher are not initialized yet (same behavior used by the dispatchEvent method) Reviewed By: fkgozali Differential Revision: D13549147 fbshipit-source-id: ef3baeb536e8772fbd83024352a37af01c21d589