# rid-lightbox

> Components in Full Screen Lightbox Popovers for React Native

Latest version **0.1.1** (published 2020-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install rid-lightbox
pnpm add rid-lightbox
yarn add rid-lightbox
bun add rid-lightbox
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-10-03 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andres Denkberg |
| Maintainers | andresd |
| Keywords | react-native, react-component, react-native-component, react, mobile, ios, android, ui, lightbox, gallery, image |

## Links

- npm: https://www.npmjs.com/package/rid-lightbox
- Repository: https://github.com/andresd/rid-lightbox
- Issues: https://github.com/andresd/rid-lightbox/issues
- npm.io page: https://npm.io/package/rid-lightbox

## Dependencies (3)

- [react-native-modal](https://npm.io/package/react-native-modal.md) ^11.5.6
- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) ^7.1.0
- [@react-native-community/hooks](https://npm.io/package/@react-native-community/hooks.md) ^2.6.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-10-03
- 0.1.0 — 2020-10-02

## README

# lightbox

A React Native Lightbox component inspired by [react-native-lightbox](https://github.com/oblador/react-native-lightbox)

## Setup

`npm install --save rid-lightbox`

## Usage

```javascript
    import {LightBox} from 'rid-lightbox';

    .
    .
    .

    return (
        <View style={[styles.container, containerStyle]}>
            <LightBox
                renderHeader={() => <NormalText style={{ textAlign: 'center', color: 'white' }}>"HEADER"</NormalText>}
                renderFooter={() => <NormalText style={{ textAlign: 'center', color: 'white' }}>"FOOTER"</NormalText>}
                renderContent={() => <Image source={{ uri: image }} resizeMode={'contain'} style={{width, height: width}}/>}>
                <Image source={{ uri: image }} style={[styles.image, imageStyle]}  />
            </LightBox>
        </View>
    );
```

## Available Props

| Name | Type | Default | Description
| -----|------|---------|------------------
| swipeable | boolean | true | Enables gestures to dismiss fullscreen mode by swiping up or down.
|containerStyle| ViewStyle |empty| Style applied to the content.
|renderHeader| func| undefined | Custom header component.
|renderContent| func| undefined | Custom content component instead of child node.
|renderFooter| func| undefined | Custom footer component.
|renderCloseButton| func| undefined | Custom close button component instead of default X icon button.

---
_Source: https://npm.io/package/rid-lightbox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
