Description
react-native-image-modal is a React Native component that shows an image full screen in a modal, for iOS and Android. It works as a drop-in for the React Native Image component: the image stays the same in your layout, and tapping it opens the full-size view. In the modal you can pinch to zoom, double-tap to zoom in and out, move the image around and swipe down to dismiss it. Its properties cover Android hardware texture rendering for animation, translucent status bar positioning and swipe-to-dismiss, which is on by default. Any props of the original React Native Image are also accepted for the thumbnail. If you prefer another image component, such as react-native-fast-image or expo-image, a renderImageComponent property lets you use it. The package installs from npm and the README has a usage example, a demo and a properties table. The project is on GitHub, and blog posts about it are linked in English, Korean and Japanese.…
Highlights
- Full-size image modal for React Native
- Pinch zoom and double-tap zoom
- Swipe down to dismiss
- Works with a custom image component
- Supports iOS and Android
Ratings & Reviews
No ratings yet
Be the first to rate react-native-image-modal.
People also visit
react-native-image-modal FAQ
What does react-native-image-modal do?
It shows an image full screen in a modal, with pinch and double-tap zoom and swipe to dismiss, on iOS and Android.
How do I install it?
Install it from npm, as described in the Installation section of the README.
Can I use it with fast-image or expo-image?
Yes. Use the renderImageComponent property to pass in a custom image component such as react-native-fast-image or expo-image.
Which props does it accept?
All props of the React Native Image component apply to the thumbnail. Modal-specific properties include swipeToDismiss, which defaults to true, and Android options for hardware texture and translucent status bars.
Is it free?
The source is public on GitHub and the project is open source.
What are the best react-native-image-modal alternatives?
Popular alternatives to react-native-image-modal include react-native-lightbox-v2, @openspacelabs/react-native-zoomable-view and react-modal-image. See all react-native-image-modal alternatives




















