An open API service indexing awesome lists of open source software.

https://github.com/alantoa/react-native-lightbox

🖼️ A 60+ fps lightbox component, build upon Reanimated & GestureHandler.
https://github.com/alantoa/react-native-lightbox

Last synced: 4 months ago
JSON representation

🖼️ A 60+ fps lightbox component, build upon Reanimated & GestureHandler.

Awesome Lists containing this project

README

        

## ⚠️ This package is no longer maintained

This repository is no longer actively maintained. If you are looking for a more performant solution with an improved API, please check out [**galeria**](https://github.com/nandorojo/galeria).

The **[galeria](https://github.com/nandorojo/galeria)** package provides better performance and enhanced features, making it a great alternative to continue your project.

Thank you for your support!


React Native Lightbox



basic usage

### Todo
- [x] tap to close
- [ ] pinch to zoom (use [Reanimated v2](https://docs.swmansion.com/react-native-reanimated/) & [react-native-gesture-handler v2](https://docs.swmansion.com/react-native-gesture-handler/))
- [ ] web support (use [photoswipe](https://github.com/dimsemenov/photoswipe) )
- [ ] photo gallery (use [react-native-pager-view](https://github.com/callstack/react-native-pager-view))

### Installation
First you have to follow installation instructions of [Reanimated v2](https://docs.swmansion.com/react-native-reanimated/) and [react-native-gesture-handler v2](https://docs.swmansion.com/react-native-gesture-handler/)

```sh
npm install @alantoa/lightbox
```

### Usage

```js
import { LightBoxProvider, LightBox } from '@alantoa/lightbox';
import { StyleSheet, Image, Dimensions } from 'react-native';
import * as React from 'react';

const { width } = Dimensions.get('window');

export default function App() {
return (





);
}
```

### Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

### License

MIT