react-native-text-carousel

0.0.1 • Public • Published

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

Name Type Default Description
height number 40 Height for container
interval number 4000 Loop interval time
direction string 'up' Direction

Package Sidebar

Install

npm i react-native-text-carousel

Weekly Downloads

36

Version

0.0.1

License

ISC

Last publish

Collaborators

  • frontendhot