rn-slideshow
Slideshow with expo, theming, customizable footer, etc
Last updated 2 months ago by xcarpentier .
MIT · Original npm · Tarball · package.json
$ cnpm install rn-slideshow 
SYNC missed versions from official npm registry.
iOS Android

rn-slideshow

Slideshow with expo, theming, customizable footer, etc

Install

yarn add rn-slideshow

Usage

import React from 'react'
import { Slideshow } from 'rn-slideshow'

export default function App() {
  return (
    <View style={styles.container}>
      <OnBoard
        theme={{ primaryColor: 'green' }}
        callToActions={[
          { title: 'Log in', onPress: () => {} },
          { title: 'Sign in', onPress: () => {} },
        ]}
        slides={[
          {
            title: 'Photo 1',
            imageSource: {
              uri:
                'https://a0.muscache.com/im/pictures/d0e6c96e-b81c-4e90-85d2-f1188a708e55.jpg?aki_policy=xx_large',
            },
          },
          {
            title: 'Photo 2',
            imageSource: {
              uri:
                'https://a0.muscache.com/im/pictures/4347c99f-b45c-4d3e-8b25-04590ff6bcbe.jpg?aki_policy=xx_large',
            },
          },
          {
            title: 'Photo 3',
            imageSource: {
              uri:
                'https://a0.muscache.com/im/pictures/861f6982-9fee-4de2-a7c3-2e2545f7f9ba.jpg?aki_policy=xx_large',
            },
          },
        ]}
      />
    </View>
  )
}

Props

  • slides: Slide[]
  • callToActions?: ButtonProps[]
  • theme?: Theme
  • renderFooter?(): ReactNode

Slide

interface Slide {
  title?: string
  imageSource: ImageSourcePropType
}

Theme

type Theme = {
  primaryColor?: string | undefined
  primaryColorVariant?: string | undefined
  backgroundColor?: string | undefined
  onBackgroundTextColor?: string | undefined
  fontSize?: number | undefined
  fontFamily?: string | undefined
}

Current Tags

  • 1.0.3                                ...           latest (2 months ago)

4 Versions

  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |