File tree Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 3030## Documentation
3131To 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
3442The example app comes with five different examples from which you can learn from, see the [ Example app] ( ./example/ ) .
3543
Original file line number Diff line number Diff line change 2929 "favicon" : " ./assets/favicon.png" ,
3030 "bundler" : " metro"
3131 },
32- "plugins" : [" expo-router" , " expo-video " ]
32+ "plugins" : [" expo-router" ]
3333 }
3434}
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import Appbar from './components/Appbar';
1919import TextArea from './components/TextArea' ;
2020import ImageMessage from './messages/ImageMessage' ;
2121import CellRenderer from './messages/CellRenderer' ;
22- import VideoMessage from './messages/VideoMessage' ;
2322
2423import { 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments