Skip to content

Commit

Permalink
chore: release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazzes committed Dec 3, 2024
1 parent 3f4ce00 commit c4e2984
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
## Documentation
To check out the docs, visit https://glazzes.github.io/react-native-zoom-toolkit/

## Support
If you have found good usage out of this library, consider supporting its development.
<p>
<a href="https://paypal.me/centurionnightair">
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="paypal">
</a>
</p>

## Demo
The example app comes with five different examples from which you can learn from, see the [Example app](./example/).

Expand Down
2 changes: 1 addition & 1 deletion example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"favicon": "./assets/favicon.png",
"bundler": "metro"
},
"plugins": ["expo-router", "expo-video"]
"plugins": ["expo-router"]
}
}
24 changes: 13 additions & 11 deletions example/src/snapback/list/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import Appbar from './components/Appbar';
import TextArea from './components/TextArea';
import ImageMessage from './messages/ImageMessage';
import CellRenderer from './messages/CellRenderer';
import VideoMessage from './messages/VideoMessage';

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

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

const renderItem = useCallback((info: ListRenderItemInfo<string>) => {
return (
<ImageMessage
uri={info.item}
index={info.index}
activeIndex={activeIndex}
useResizeConfig={info.index === 2}
/>
);
}, []);
const renderItem = useCallback(
(info: ListRenderItemInfo<string>) => {
return (
<ImageMessage
uri={info.item}
index={info.index}
activeIndex={activeIndex}
useResizeConfig={info.index === 2}
/>
);
},
[activeIndex]
);

return (
<FlatList
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-zoom-toolkit",
"version": "3.1.0",
"version": "4.0.0",
"description": "Most complete set of pinch to zoom utilites for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit c4e2984

Please sign in to comment.