@one-am/react-native-simple-image-slider
TypeScript icon, indicating that this package has built-in type declarations

0.15.0 • Public • Published

react-native-simple-image-slider

NPM Version NPM License NPM Downloads

A simple and performant image slider made with @shopify/flash-list and expo-image Includes a full screen gallery component with gesture support.

Alt Text

Installation

Expo

npx expo install @shopify/flash-list expo-image expo-haptics expo-status-bar react-native-reanimated react-native-svg \
 react-native-gesture-handler react-native-safe-area-context styled-components \
  @one-am/react-native-simple-image-slider

Non-Expo

npm
npm install @shopify/flash-list expo-image expo-haptics expo-status-bar react-native-reanimated react-native-svg \
 react-native-gesture-handler react-native-safe-area-context styled-components \
  @one-am/react-native-simple-image-slider
yarn
yarn add @shopify/flash-list expo-image expo-haptics expo-status-bar react-native-reanimated react-native-svg \
 react-native-gesture-handler react-native-safe-area-context styled-components \
  @one-am/react-native-simple-image-slider

Usage

<SimpleImageSliderThemeProvider>
  <SimpleImageSlider
    data={photos.map((photo, index) => ({
      source: photo,
      key: index.toString(),
    }))}
    imageWidth={width}
    imageAspectRatio={16 / 9}
    fullScreenEnabled={true}
    renderFullScreenDescription={(_, index) => (
      <Text style={{ color: '#ffffff' }}>Picture {index}</Text>
    )}
  />
</SimpleImageSliderThemeProvider>

Contributing

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

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @one-am/react-native-simple-image-slider

Weekly Downloads

33

Version

0.15.0

License

MIT

Unpacked Size

214 kB

Total Files

108

Last publish

Collaborators

  • lanfr0
  • davidevolta
  • chris54721