From 058642f08d62e9f710edfc97b6ef89462c391325 Mon Sep 17 00:00:00 2001 From: hyochan Date: Wed, 8 Dec 2021 12:11:26 +0900 Subject: [PATCH] Release 1.1.4 --- .prettierrc.js | 1 - CHANGELOG.md | 5 +++++ RNMasonryExample/.prettierrc.js | 1 - RNMasonryExample/App.tsx | 3 ++- index.tsx | 9 ++++++--- package.json | 4 ++-- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index cea0868..dab4906 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -4,6 +4,5 @@ module.exports = { arrowParens: 'always', singleQuote: true, jsxSingleQuote: false, - jsxBracketSameLine: true, bracketSpacing: false, }; diff --git a/CHANGELOG.md b/CHANGELOG.md index 788166b..d42c890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.1.4 + +Small internal lint fixes. + + ## 1.1.3 Layout styling fixes [#23](https://github.com/hyochan/react-native-masonry-list/pull/23) diff --git a/RNMasonryExample/.prettierrc.js b/RNMasonryExample/.prettierrc.js index 52da777..44c3a18 100644 --- a/RNMasonryExample/.prettierrc.js +++ b/RNMasonryExample/.prettierrc.js @@ -3,6 +3,5 @@ module.exports = { arrowParens: "always", singleQuote: true, jsxSingleQuote: false, - jsxBracketSameLine: true, bracketSpacing: false, }; diff --git a/RNMasonryExample/App.tsx b/RNMasonryExample/App.tsx index 8920108..987fd49 100644 --- a/RNMasonryExample/App.tsx +++ b/RNMasonryExample/App.tsx @@ -181,7 +181,8 @@ const FurnitureCard: FC<{item: Furniture}> = ({item}) => { + }} + > {item.text} diff --git a/index.tsx b/index.tsx index 0876cda..4d8f4f6 100644 --- a/index.tsx +++ b/index.tsx @@ -91,7 +91,8 @@ function MasonryList(props: Props): ReactElement { onScroll={({nativeEvent}: {nativeEvent: NativeScrollEvent}) => { if (isCloseToBottom(nativeEvent, onEndReachedThreshold || 0.1)) onEndReached?.(); - }}> + }} + > {ListHeaderComponent} {data.length === 0 && ListEmptyComponent ? ( React.isValidElement(ListEmptyComponent) ? ( @@ -107,7 +108,8 @@ function MasonryList(props: Props): ReactElement { flexDirection: horizontal ? 'column' : 'row', }, style, - ]}> + ]} + > {Array.from(Array(numColumns), (_, num) => { return ( (props: Props): ReactElement { style={{ flex: 1 / numColumns, flexDirection: horizontal ? 'row' : 'column', - }}> + }} + > {data .map((el, i) => { if (i % numColumns === num) diff --git a/package.json b/package.json index bbfa59c..ddefd94 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "@react-native-seoul/masonry-list", - "version": "1.1.3", + "version": "1.1.4", "description": "React Native Masonry List for Pinterest like UI implemented just like the [FlatList].", "main": "lib/index.js", "types": "lib/index.d.ts", - "postinstall": "dooboolab-welcome postinstall", + "postinstall": "npx dooboolab-welcome postinstall", "scripts": { "lint": "eslint . --ext .ts,.tsx,.js,.jsx", "build": "rm -rf ./lib && tsc && flowgen lib/index.d.ts -o lib/index.js.flow",