Skip to content

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

Notifications You must be signed in to change notification settings

ori9998/react-native-lightbox

 
 

Repository files navigation

React Native Lightbox

basic usage

Todo

Installation

First you have to follow installation instructions of Reanimated v2 and react-native-gesture-handler v2

npm install @alantoa/lightbox

Usage

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 (
    <LightBoxProvider>
      <LightBox
        width={width / 3}
        height={width / 3}
        imgLayout={{ width, height: width }}
      >
        <Image
          source={{
            uri: uri,
          }}
          style={StyleSheet.absoluteFillObject}
        />
      </LightBox>
    </LightBoxProvider>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.3%
  • JavaScript 12.1%
  • Shell 0.6%