mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
292268ea3f
Summary: This PR slightly improves the implementation of `dispatchCommand` method of `UIManagerBinding` to use existing variable `shadowNode` instead of calling `shadowNodeFromValue` again. ## Changelog [INTERNAL] [CHANGED] - Eliminated double call of `shadowNodeFromValue` in `dispatchCommand` Pull Request resolved: https://github.com/facebook/react-native/pull/35695 Test Plan: Launch RNTester with Fabric enabled and check if `scrollTo` or some other command works properly. Reviewed By: christophpurrer Differential Revision: D42233216 Pulled By: robhogan fbshipit-source-id: db152206060ff599962f47c43fda8ea797f2a8cb