https://github.com/skrivle/rn-infinite-carousel
React Native Infinite ScrollView
https://github.com/skrivle/rn-infinite-carousel
infinite-scroll react react-native scrollview
Last synced: 3 months ago
JSON representation
React Native Infinite ScrollView
- Host: GitHub
- URL: https://github.com/skrivle/rn-infinite-carousel
- Owner: skrivle
- License: mit
- Created: 2020-09-18T19:39:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T18:21:55.000Z (over 5 years ago)
- Last Synced: 2025-10-11T10:49:31.131Z (9 months ago)
- Topics: infinite-scroll, react, react-native, scrollview
- Language: TypeScript
- Homepage:
- Size: 758 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Infinite Carousel
## Installation
```
npm i rn-infinite-carousel --save
```
## Usage
```typescript
import React from 'react';
import { StyleSheet, Text, View, Dimensions } from 'react-native';
import { Slider } from 'rn-infinite-carousel';
function Slide({ text, color }) {
return (
{text}
);
}
export default function App() {
return (
);
}
const styles = StyleSheet.create({
slide: {
width: Dimensions.get('screen').width,
height: 400,
alignItems: 'center',
justifyContent: 'center',
},
text: {
color: 'white',
},
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
```