Currently, I'm refactoring Pager and Lightbox components in order to enable galleries without lightbox as well as an ability to change some of params of both pager and lightbox
The library will have few options:
- StandaloneGallery - ability to show pager with images as a new screen. Without lightbox transition.
- Gallery - regular list of photos with transition to and from pager.
- Lightbox - single photo with/without transform abilities.
- ImageTransformer - standalone component with abilities to transform image (pinch to zoom, pan).
The source code for the example (showcase) app is under the Example/
directory.
Clone the repo, go to the Example/ folder and run:
npm install
Before running the app, install the cocoapods dependencies:
cd ios && pod install && cd ..
Now, you can start the app:
react-native run-ios
Run the react native's cli command:
react-native run-android
Important: You will need to have an Android or iOS device or emulator connected as well as react-native-cli package installed globally.