Skip to content

ferrannp/reanimated-gallery

 
 

Repository files navigation

Reanimated Gallery

Reanimated 2 powered Gallery implementation

Development status

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).

Gallery in action gif

Examples

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

Running on iOS

Before running the app, install the cocoapods dependencies:

cd ios && pod install && cd ..

Now, you can start the app:

react-native run-ios

Running on Android

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.

LICENSE

MIT

About

Reanimated 2 powered gallery implementation

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.0%
  • Java 10.5%
  • Objective-C++ 7.8%
  • JavaScript 5.5%
  • Objective-C 3.3%
  • Ruby 1.0%
  • Starlark 0.9%