Skip to content

DurioLab/react-native-text-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

TextCarousel for ReactNative

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors