Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/src/InteractableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
}
Expand All @@ -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],
);
}
Expand All @@ -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],
);
}
Expand All @@ -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,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you should uniq 'InteractableView' string as a constant

[],
);
}
Expand Down