
Description
react-native-lightbox-v2 is a React Native component that shows images, and other content, in a full screen lightbox popover when the user taps them. The author made it as a fork of the original react-native-lightbox, which the README says had stopped being maintained, and published it to npm under a new name. The README describes the version as a set of fixes on top of the original rather than a new design. You wrap a child component, and the package opens its content in a full screen view with a close button. Props let you change the header with renderHeader, the content with renderContent, and the item that opens the lightbox with renderItem. Callbacks cover opening and closing, including willClose, onClose, onOpen, didOpen, onLongPress and onLayout. The README has an answer on how to stop long press from saving an image. Android needs a reference to a Navigator, and the README notes that navigator support ends with version 0.9.0. The project is public on GitHub.…
Highlights
- Full screen lightbox for images and other content
- Custom header, content and trigger with render props
- Open, close and long press callbacks
- Long press handling for images
- Android support through a Navigator reference
Ratings & Reviews
No ratings yet
Be the first to rate react-native-lightbox-v2.
People also visit
react-native-popover-view
A <Popover /> component for react-native iOS, Android, and Web
react-native-lightbox-v2 FAQ
What is react-native-lightbox-v2?
A React Native component that opens content in a full screen lightbox when tapped. It is a fork of react-native-lightbox published to npm.
Is it free?
Yes. The source is public on GitHub and listed as open source.
Does it work on Android?
The README says Android needs a reference to a Navigator, because it does not yet use the Modal component. Navigator support ends with version 0.9.0.
How do I stop people saving my image on long press?
The README says the longPressCallback prop resolves this.
What are the best react-native-lightbox-v2 alternatives?
Popular alternatives to react-native-lightbox-v2 include react-native-image-modal, yet-another-react-lightbox and react-modal-image. See all react-native-lightbox-v2 alternatives




















