Support animation events in ViewEventModule

Summary:
Adds support for handling animations in response to events on the platform side, without needing a JS round trip. With this TM, NativeViewEvents will no longer affected by JS thread - hover events will not be delayed when JS thread is busy. This makes a significant difference for VR panel apps - see test plan for an example for the before and after in Store.

Changelog:
[Internal] - Make NativeAnimatedNodesManager public

Reviewed By: JoshuaGross

Differential Revision: D37082069

fbshipit-source-id: 330acd78c547587de5545b61895e0d821fb99552
This commit is contained in:
Genki Kondo
2022-06-12 12:42:08 -07:00
committed by Facebook GitHub Bot
parent 34e51191e7
commit c80309e5ae
2 changed files with 2 additions and 2 deletions
@@ -411,7 +411,7 @@ public class NativeAnimatedModule extends NativeAnimatedModuleSpec
* @return {@link NativeAnimatedNodesManager}
*/
@Nullable
private NativeAnimatedNodesManager getNodesManager() {
public NativeAnimatedNodesManager getNodesManager() {
if (mNodesManager.get() == null) {
ReactApplicationContext reactApplicationContext = getReactApplicationContextIfActiveOrWarn();
@@ -51,7 +51,7 @@ import java.util.Queue;
*
* <p>IMPORTANT: This class should be accessed only from the UI Thread
*/
/*package*/ class NativeAnimatedNodesManager implements EventDispatcherListener {
public class NativeAnimatedNodesManager implements EventDispatcherListener {
private static final String TAG = "NativeAnimatedNodesManager";