Skip to content

Commit c4e2984

Browse files
committed
chore: release 4.0.0
1 parent 3f4ce00 commit c4e2984

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
## Documentation
3131
To check out the docs, visit https://glazzes.github.io/react-native-zoom-toolkit/
3232

33+
## Support
34+
If you have found good usage out of this library, consider supporting its development.
35+
<p>
36+
<a href="https://paypal.me/centurionnightair">
37+
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="paypal">
38+
</a>
39+
</p>
40+
3341
## Demo
3442
The example app comes with five different examples from which you can learn from, see the [Example app](./example/).
3543

example/app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"favicon": "./assets/favicon.png",
3030
"bundler": "metro"
3131
},
32-
"plugins": ["expo-router", "expo-video"]
32+
"plugins": ["expo-router"]
3333
}
3434
}

example/src/snapback/list/MessageList.tsx

+13-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import Appbar from './components/Appbar';
1919
import TextArea from './components/TextArea';
2020
import ImageMessage from './messages/ImageMessage';
2121
import CellRenderer from './messages/CellRenderer';
22-
import VideoMessage from './messages/VideoMessage';
2322

2423
import { theme } from '../../constants';
2524

@@ -81,16 +80,19 @@ const MessageList: React.FC<MessageListProps> = ({ keyboardTranslateY }) => {
8180
[activeIndex]
8281
);
8382

84-
const renderItem = useCallback((info: ListRenderItemInfo<string>) => {
85-
return (
86-
<ImageMessage
87-
uri={info.item}
88-
index={info.index}
89-
activeIndex={activeIndex}
90-
useResizeConfig={info.index === 2}
91-
/>
92-
);
93-
}, []);
83+
const renderItem = useCallback(
84+
(info: ListRenderItemInfo<string>) => {
85+
return (
86+
<ImageMessage
87+
uri={info.item}
88+
index={info.index}
89+
activeIndex={activeIndex}
90+
useResizeConfig={info.index === 2}
91+
/>
92+
);
93+
},
94+
[activeIndex]
95+
);
9496

9597
return (
9698
<FlatList

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-zoom-toolkit",
3-
"version": "3.1.0",
3+
"version": "4.0.0",
44
"description": "Most complete set of pinch to zoom utilites for React Native",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)