0.0.1 • Published 6 years ago

react-native-text-carousel v0.0.1

Weekly downloads
719
License
ISC
Repository
-
Last release
6 years ago

Setup

This libray is available on npm, install it with: npm install --save react-native-text-carousel or yarn add react-native-text-carousel

Usage

  1. Import react-native-text-carousel
import TextCarousel from react-native-text-carousel
  1. Render
render(){
    return  (<View>
    <TextCarousel>
      <TextCarousel.Item>
        <View><Text>1111111</Text></View>
      </TextCarousel.Item>
      <TextCarousel.Item>
        <View><Text>22222222</Text></View>
      </TextCarousel.Item>
      <TextCarousel.Item>
        <View><Text>33333333</Text></View>
      </TextCarousel.Item>
    </TextCarousel>
    </View>)
}

Available props

NameTypeDefaultDescription
heightnumber40Height for container
intervalnumber4000Loop interval time
directionstring'up'Direction