Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        


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