react-native-gesture-image-viewer 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ bun add react-native-gesture-image-viewer
|
|
|
114
114
|
You can create a viewer using any `Modal` of your choice as shown below:
|
|
115
115
|
|
|
116
116
|
```tsx
|
|
117
|
-
import { Image, Modal } from 'react-native';
|
|
117
|
+
import { FlatList, Image, Modal } from 'react-native';
|
|
118
118
|
import { GestureViewer } from 'react-native-gesture-image-viewer';
|
|
119
119
|
|
|
120
120
|
function App() {
|
|
@@ -131,6 +131,7 @@ function App() {
|
|
|
131
131
|
<GestureViewer
|
|
132
132
|
data={images}
|
|
133
133
|
renderItem={renderImage}
|
|
134
|
+
ListComponent={FlatList}
|
|
134
135
|
onDismiss={() => setVisible(false)}
|
|
135
136
|
/>
|
|
136
137
|
</Modal>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gesture-image-viewer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "🖼️ A highly customizable and easy-to-use React Native image viewer with gesture support and external controls",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|