This is a very functional component using the functionality of the Gesture Handler to be able to zoom in on images, without depending on other libraries.
The functionality is simple, you can load the component, listing the image you want and you can zoom in with the pinch touch.
Using React Native with Expo
: The expo makes setting up the environment easy;Use the library GestureHandler
: This library provides an API that exposes mobile platform specific native capabilities of touch & gesture handling and recognition.
To install React Native with Expo on your OS, follow the steps in https://docs.expo.dev/get-started/installation/ and https://docs.expo.dev/get-started/create-a-new-app/
- run pm install or yarn
- run expo start or yarn start