oblador / react-native-pinchable

Instagram like pinch to zoom for React Native
MIT License
224 stars 23 forks source link

react-native-pinchable and Expo #6

Open giacomoarienti opened 2 years ago

giacomoarienti commented 2 years ago

I get the following error when trying to use this library with expo: Invariant Violation: requireNativeComponent: "PinchableView" was not found in the UIManager.

pythonistastic commented 2 years ago

same error

tlmader commented 2 years ago

Anyone know an alternative to this that works with Expo?

hirbod commented 2 years ago

This library adds native code. If you want to use it with expo, you'll need a custom expo dev client. It works

martymfly commented 2 years ago

This library adds native code. If you want to use it with expo, you'll need a custom expo dev client. It works

It didn't work with expo dev client.

hirbod commented 2 years ago

@martymfly for me it did

martymfly commented 2 years ago

@martymfly for me it did

I finally got it to work with dev-client.

I used to build development build through eas then run the app with expo start --dev-client but sometimes it doesn't work so we may need to run the app with expo run:android(ios) so the dev-client will be up to date.