Skip to content

Commit 39ab763

Browse files
committed
use ScrollView for Carousel example screen
1 parent c42e199 commit 39ab763

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/src/screens/componentScreens/CarouselScreen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component} from 'react';
2-
import {StyleSheet} from 'react-native';
2+
import {StyleSheet, ScrollView} from 'react-native';
33
import {Constants, View, Text, Carousel, Image, Card} from 'react-native-ui-lib'; // eslint-disable-line
44
import _ from 'lodash';
55

@@ -28,7 +28,7 @@ class CarouselScreen extends Component {
2828

2929
render() {
3030
return (
31-
<View flex>
31+
<ScrollView>
3232
<Text text30 margin-20>
3333
Carousel
3434
</Text>
@@ -89,7 +89,7 @@ class CarouselScreen extends Component {
8989
})}
9090
</Carousel>
9191
</View>
92-
</View>
92+
</ScrollView>
9393
);
9494
}
9595
}

0 commit comments

Comments
 (0)