Skip to content

Commit

Permalink
1.4.2
Browse files Browse the repository at this point in the history
Resolve #55
  • Loading branch information
hyochan committed Jun 6, 2023
1 parent acee7d3 commit a2b6346
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 273 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.2
* Fix type warning in RN 71.8+
- Resolve [#55](https://github.com/hyochan/react-native-masonry-list/issues/55)

## 1.2.1
* Fix `keyExtractor` types.

Expand Down
4 changes: 2 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import type {
NativeScrollEvent,
Omit,
RefreshControlProps,
ScrollViewProps,
StyleProp,
ViewStyle,
} from 'react-native';
import {RefreshControl, ScrollView, View} from 'react-native';
import type {MutableRefObject, ReactElement} from 'react';
import React, {memo, useState} from 'react';
import {RefreshControl, ScrollView, View} from 'react-native';

interface Props<T> extends Omit<ScrollViewProps, 'refreshControl'> {
innerRef?: MutableRefObject<ScrollView | undefined>;
Expand Down Expand Up @@ -113,6 +112,7 @@ function MasonryList<T>(props: Props<T>): ReactElement {
React.isValidElement(ListEmptyComponent) ? (
ListEmptyComponent
) : (
// @ts-ignore
<ListEmptyComponent />
)
) : (
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-seoul/masonry-list",
"version": "1.4.1",
"version": "1.4.2",
"description": "React Native Masonry List for Pinterest like UI implemented just like the [FlatList].",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Loading

0 comments on commit a2b6346

Please sign in to comment.