Skip to content

Commit 950dc8e

Browse files
authored
Fix Easing import in LongPress example (#4298)
## Description `Easing` should be imported from `react-native-reanimated` instead of `react-native`. `Easing` from `react-native` is not a worklet like the one from `react-native-reanimated`. Using `Easing` from `react-native` here throws an error `[Worklets] Tried to synchronously call a Remote Function. Called "BezierEasing" on the UI Runtime`
1 parent 8b5d4a0 commit 950dc8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/docs-gesture-handler/static/examples/LongPressGestureBasic.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import {
44
GestureHandlerRootView,
55
useLongPressGesture,
66
} from 'react-native-gesture-handler';
7-
import { Easing, StyleSheet } from 'react-native';
7+
import { StyleSheet } from 'react-native';
88
import Animated, {
9+
Easing,
910
interpolateColor,
1011
useAnimatedStyle,
1112
useSharedValue,

0 commit comments

Comments
 (0)