Skip to content

Commit 3dc5f58

Browse files
authored
Fix marquee screen now have scroll view (#2340)
* Fix marquee screen now have scroll view * Fixed review comments * New container style sheet
1 parent e8ff69d commit 3dc5f58

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

demo/src/screens/componentScreens/MarqueeScreen.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import _ from 'lodash';
21
import React, {Component} from 'react';
3-
import {StyleSheet} from 'react-native';
2+
import {StyleSheet, ScrollView} from 'react-native';
43
import {Marquee, MarqueeDirections, Text, View, Spacings} from 'react-native-ui-lib';
54
import {renderBooleanOption, renderMultipleSegmentOptions} from '../ExampleScreenPresenter';
65

@@ -61,7 +60,7 @@ export default class MarqueeScreen extends Component<{}> {
6160

6261
render() {
6362
return (
64-
<View flex padding-page>
63+
<ScrollView style={styles.container}>
6564
<Text h1 center margin-20 $textDefault>
6665
Marquee
6766
</Text>
@@ -84,12 +83,16 @@ export default class MarqueeScreen extends Component<{}> {
8483
</View>
8584
{this.renderHorizontalSection()}
8685
{this.renderVerticalSection()}
87-
</View>
86+
</ScrollView>
8887
);
8988
}
9089
}
9190

9291
const styles = StyleSheet.create({
92+
container: {
93+
flex: 1,
94+
padding: 20
95+
},
9396
containerHorizontal: {
9497
borderWidth: 1,
9598
borderColor: 'black',

0 commit comments

Comments
 (0)