1.3.2 • Published 7 years ago

@nomads42/react-native-lightbox v1.3.2

Weekly downloads
2
License
-
Repository
github
Last release
7 years ago

React Native Lightbox

React Native Lightbox is an npm package that allows you using a lightbox in a React Native project.

Getting Started

Installation

$ npm install --save @nomads42/react-native-lightbox

Basic Usage

<LightBox>
  <Image ... />
  ...
  <Image ... />
</LightBox>

Properties

LightBox

PropDefaultTypeDescription
paginationStylenullstringAllows you to choose the pagination style. 3 possible values: null, dots and pages.
renderFooternullfunctionDisplay the return value of this function at the bottom of the lightbox. renderFooter gets the index of the current <Image /> in parameters.
albumfalsebooleanDisplay all the children instead of just the selected one.

Image

If you want a specific <Image ... /> to be selected for your LightBox, simply add a selected attribute to that one like this: <Image ... selected />. By default, the first one is selected.

Dependencies

React Native Lightbox uses a number of open source projects to work properly:

Roadmap

  • Zoomable images
  • Animations
1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago