An open API service indexing awesome lists of open source software.

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

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',
},
});
```