Did the location of GestureHandler change (specifically PinchGestureHandler), or is this simply an error with the build? It works fine in 27.0.1.
import { GestureHandler } from ‘expo’;
const { PinchGestureHandler } = GestureHandler; //Cannot read property ‘PinchGestureHandler’ of undefined
import { PinchGestureHandler } from GestureHandler;
this is wrong, it should be
const { PinchGestureHandler } = GestureHandler;
Sorry I am actually using const { PinchGestureHandler } = GestureHandler;
I just copied it wrong in this post
gotcha. fixed for sdk28 (to be released soon). for now import from react-native-gesture-handler directly: https://github.com/expo/expo/issues/1809
2 Likes
system
Closed
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.