From 9907b06a6602a95e0aee24fc439b3e465ff17395 Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 5 Feb 2019 16:21:33 +0000 Subject: [PATCH] Fixing yellow warning in react-native-interactable (forked the library in tt-driver-apps for using UIManager.getViewManagerConfig) --- lib/src/InteractableView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/InteractableView.js b/lib/src/InteractableView.js index acad28ac..6c52eed8 100644 --- a/lib/src/InteractableView.js +++ b/lib/src/InteractableView.js @@ -73,7 +73,7 @@ class WrappedAnimatedInteractableView extends Component { } else if (Platform.OS === 'android') { UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(this), - UIManager.InteractableView.Commands.setVelocity, + UIManager.getViewManagerConfig('InteractableView').Commands.setVelocity, [params], ); } @@ -85,7 +85,7 @@ class WrappedAnimatedInteractableView extends Component { } else if (Platform.OS === 'android') { UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(this), - UIManager.InteractableView.Commands.snapTo, + UIManager.getViewManagerConfig('InteractableView').Commands.snapTo, [params], ); } @@ -97,7 +97,7 @@ class WrappedAnimatedInteractableView extends Component { } else if (Platform.OS === 'android') { UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(this), - UIManager.InteractableView.Commands.changePosition, + UIManager.getViewManagerConfig('InteractableView').Commands.changePosition, [params], ); } @@ -107,7 +107,7 @@ class WrappedAnimatedInteractableView extends Component { if (Platform.OS === 'android') { UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(this), - UIManager.InteractableView.Commands.bringToFront, + UIManager.getViewManagerConfig('InteractableView').Commands.bringToFront, [], ); }