react-native-text-carousel
v0.0.1
Published
text carousel for react-native
Readme
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
- Import react-native-text-carousel
import TextCarousel from react-native-text-carousel- 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 |
