mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
34e51191e7
commit
c80309e5ae
@@ -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();
|
||||
|
||||
|
||||
+1
-1
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user