Skip to content

Commit ff597bd

Browse files
committed
Updated example project for new feature.
1 parent 65b0994 commit ff597bd

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

example/ReactNativeMasonryListExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class ReactNativeMasonryListExample extends Component {
3232
return (
3333
<TouchableWithoutFeedback
3434
onPress={() => Linking.openURL("https://luehangs.site")}>
35-
<View style={[styles.masonryHeader, {width: data.width}]}>
35+
<View style={[styles.masonryHeader, {width: data.masonryDimensions.width}]}>
3636
<Image
3737
source={{ uri: "https://luehangs.site/images/lue-hang2018-square.jpg" }}
3838
style={styles.userPic} />
342 KB
Loading

example/data.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ const data = [
55
id: idGenerator(),
66
title: "www.luehangs.site",
77
},
8+
{
9+
uri: "https://luehangs.site/pic-chat-app-images/beautiful-beautiful-woman-beauty-9763.jpg",
10+
width: 1080,
11+
height: 1920,
12+
id: idGenerator(),
13+
title: "www.luehangs.site"
14+
},
815
{
916
source: { uri: "https://luehangs.site/pic-chat-app-images/animals-avian-beach-760984.jpg" },
1017
dimensions: { width: 1080, height: 1920 },
@@ -35,12 +42,6 @@ const data = [
3542
title: "www.luehangs.site",
3643
// dimensions: { width: 1920, height: 1080 },
3744
},
38-
{
39-
uri: "https://luehangs.site/pic-chat-app-images/beautiful-beautiful-woman-beauty-9763.jpg",
40-
id: idGenerator(),
41-
title: "www.luehangs.site",
42-
// dimensions: { width: 1080, height: 1920 },
43-
},
4445
{
4546
uri: "https://luehangs.site/pic-chat-app-images/attractive-balance-beautiful-186263.jpg",
4647
id: idGenerator(),

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prop-types": "15.6.2",
1111
"react": "16.6.1",
1212
"react-native": "0.57.5",
13-
"react-native-masonry-list": "^1.2.12"
13+
"react-native-masonry-list": "^1.5.0"
1414
},
1515
"devDependencies": {
1616
"metro-react-native-babel-preset": "0.49.2",

0 commit comments

Comments
 (0)