Skip to content

Commit c7a64be

Browse files
committed
Fix and improve inspiration screens
1 parent 0d75038 commit c7a64be

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

demo/src/assets/icons/plus.png

115 Bytes
Loading
195 Bytes
Loading
266 Bytes
Loading
420 Bytes
Loading
633 Bytes
Loading

demo/src/configurations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Assets.loadAssetsGroup('icons.demo', {
77
close: require('./assets/icons/close.png'),
88
dashboard: require('./assets/icons/dashboard.png'),
99
image: require('./assets/icons/image.png'),
10+
plus: require('./assets/icons/plus.png'),
1011
refresh: require('./assets/icons/refresh.png'),
1112
search: require('./assets/icons/search.png')
1213
});

demo/src/screens/realExamples/Pinterest/index.js renamed to demo/src/screens/realExamples/Pinterest/index.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Component} from 'react';
22
import {StyleSheet, ScrollView} from 'react-native';
3-
import {Colors, Spacings, View, Card, Text, Image, Constants} from 'react-native-ui-lib';
3+
import {Assets, Colors, Spacings, View, Card, Text, Image, Button, Constants} from 'react-native-ui-lib';
44
import _ from 'lodash';
55

66
import './configurations';
@@ -86,6 +86,14 @@ class Pinterest extends Component {
8686
activeOpacity={1}
8787
>
8888
<Image style={[styles.image, {aspectRatio: image.aspectRatio}]} source={{uri: image.uri}} width={COLUMN_SIZE}/>
89+
<View absF bottom right pointerEvents="none" padding-s2>
90+
<Button
91+
iconSource={Assets.icons.demo.plus}
92+
round
93+
size={Button.sizes.xSmall}
94+
backgroundColor={Colors.rgba(Colors.grey80, 0.7)}
95+
/>
96+
</View>
8997
</Card>
9098
);
9199
}
@@ -108,8 +116,8 @@ class Pinterest extends Component {
108116

109117
if (!images) {
110118
return (
111-
<View>
112-
<Text>Loading</Text>
119+
<View flex center>
120+
<Text text60>Loading...</Text>
113121
</View>
114122
);
115123
}

demo/src/screens/realExamples/ProductPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ class Product extends Component {
8686
}}
8787
>
8888
{_.map(colorOptions, (colorOption, colorKey) => {
89-
return <Picker.Item value={colorKey} label={colorOption.name}/>;
89+
return <Picker.Item key={colorKey} value={colorKey} label={colorOption.name}/>;
9090
})}
9191
</Picker>
9292
<Picker migrate value={selectedSize} onChange={(value: string) => this.setState({selectedSize: value})}>
9393
{_.map(sizeOptions, (sizeOption, sizeKey) => {
94-
return <Picker.Item value={sizeKey} label={sizeOption.name}/>;
94+
return <Picker.Item key={sizeKey} value={sizeKey} label={sizeOption.name}/>;
9595
})}
9696
</Picker>
9797
</View>

0 commit comments

Comments
 (0)