Skip to content

Commit 6c10d1b

Browse files
committed
Minor updates in example screens
1 parent 1a8ca6a commit 6c10d1b

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

demo/src/screens/componentScreens/ActionBarScreen.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import collections from '../../assets/icons/collections.png';
99
import richText from '../../assets/icons/richText.png';
1010

1111
export default class ActionBarScreen extends Component {
12-
1312
constructor(props) {
1413
super(props);
1514

@@ -55,16 +54,11 @@ export default class ActionBarScreen extends Component {
5554
</View>
5655

5756
<View style={styles.page}>
58-
<ActionBar
59-
actions={[{label: 'Delete', red30: true}, {label: 'Edit'}]}
60-
/>
57+
<ActionBar actions={[{label: 'Delete', red30: true}, {label: 'Edit'}]}/>
6158
</View>
6259

6360
<View style={styles.page}>
64-
<ActionBar
65-
centered
66-
actions={[{label: 'Send as Contact'}, {label: 'Archive Chat'}]}
67-
/>
61+
<ActionBar centered actions={[{label: 'Send as Contact'}, {label: 'Archive Chat'}]}/>
6862
</View>
6963

7064
<View style={styles.page}>
@@ -81,8 +75,10 @@ export default class ActionBarScreen extends Component {
8175
<View style={styles.page}>
8276
<ActionBar
8377
centered
84-
actions={_.map([cameraSelected, video, tags, collections, richText],
85-
iconSource => ({iconSource, iconStyle: {width: 25}}))}
78+
actions={_.map([cameraSelected, video, tags, collections, richText], iconSource => ({
79+
iconSource,
80+
iconStyle: {width: 25}
81+
}))}
8682
/>
8783
</View>
8884
</Carousel>
@@ -100,7 +96,7 @@ const styles = StyleSheet.create({
10096
},
10197
absoluteContainer: {
10298
position: 'absolute',
103-
bottom: 80,
99+
bottom: 150,
104100
left: 0,
105101
right: 0
106102
}

demo/src/screens/componentScreens/CardsScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,14 @@ export default class CardsScreen extends Component<CardsScreenProps, CardsScreen
320320
<Text h1 marginB-s4>Cards</Text>
321321
<Text h3>Selectable Cards</Text>
322322
{this.renderSelectableCards()}
323-
<Text h3 marginB-s4>
323+
<Text h3 marginV-s5>
324324
Horizontal Cards
325325
</Text>
326326
{this.renderHorizontalCard(true, 0, true)}
327327
{this.renderHorizontalCard(true, 20, false)}
328328
{this.renderHorizontalCard(false, 0, false)}
329329
{this.renderHorizontalCard(false, 20, true)}
330-
<Text h3 marginB-s4>
330+
<Text h3 marginV-s5>
331331
Card Sections
332332
</Text>
333333
{this.renderCoupons()}

0 commit comments

Comments
 (0)