Skip to content

Commit c859694

Browse files
committed
chore: bump package version to 1.0.0 and update README example
- Update package version to 1.0.0 - Enhance README with a complete example implementation - Add styles and proper component structure to example code
1 parent 2bcd15e commit c859694

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,24 @@ yarn add @duocvo/react-native-gesture-image
2525
import Gallery from '@duocvo/react-native-gesture-image';
2626

2727
// Example usage of Gallery
28-
const images = [
29-
{ uri: 'https://example.com/image1.jpg' },
30-
{ uri: 'https://example.com/image2.jpg' },
31-
{ uri: 'https://example.com/image3.jpg' },
32-
];
33-
34-
<Gallery data={images} />
28+
export default function App() {
29+
const images = [
30+
{ uri: 'https://picsum.photos/200/300' },
31+
{ uri: 'https://picsum.photos/200/300' },
32+
{ uri: 'https://picsum.photos/200/300' },
33+
]
34+
return (
35+
<View style={styles.container}>
36+
<Gallery data={images} />
37+
</View>
38+
);
39+
}
40+
41+
const styles = StyleSheet.create({
42+
container: {
43+
flex: 1,
44+
},
45+
});
3546
```
3647

3748
## Props

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@duocvo/react-native-gesture-image",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "This library provides a highly customizable and performant image viewer component for React Native applications. Itsupport advanced gestures such as pinch-to-zoom, panning, and double-tap to zoom in and out, making it ideal for creating rich, interactive image viewing experiences.",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)