New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-reanimated-image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-reanimated-image-viewer - npm Package Compare versions

Comparing version

to
1.0.1

4

build/dist/ImageViewer.d.ts

@@ -6,5 +6,5 @@ /// <reference types="react" />

height: number;
onRequestClose: () => void;
onSingleTap?: () => void;
onRequestClose: () => unknown;
onSingleTap?: () => unknown;
};
export default function ImageViewer({ imageUrl, width, height, onSingleTap, onRequestClose, }: ImageViewerProps): JSX.Element;
{
"name": "react-native-reanimated-image-viewer",
"version": "1.0.0",
"version": "1.0.1",
"description": "A image viewer for React Native created with Reanimated",

@@ -58,4 +58,5 @@ "main": "./build/dist/index.js",

"rome": "^11.0.0",
"simple-git-hooks": "^2.8.1",
"typescript": "^4.9.4"
}
}

@@ -17,3 +17,3 @@ # A image viewer for React Native created with Reanimated

Rather than a library, I decided to release it as a single file, ready to be copied and pasted into any project. I don't intend to upgrade drastically, as it's a simple component, but at the same time it has everything you could ever need. Created for my social network app, [Drakkle](https://play.google.com/store/apps/details?id=com.andresribeiro.drakkle)
Uses Reanimated and Gesture Handler under the hood. Created for my social network app, [Drakkle](https://play.google.com/store/apps/details?id=com.andresribeiro.drakkle)

@@ -30,3 +30,3 @@ ### Installation ⚙️

Import the ImageViewer.tsx into a new screen. You can also use a Modal, but you will need to [configure the Gesture Handler on Android](https://docs.swmansion.com/react-native-gesture-handler/docs/next/installation#usage-with-modals-on-android)
Import the ImageViewer into a new screen. You can also use a Modal, but you will need to [configure the Gesture Handler on Android](https://docs.swmansion.com/react-native-gesture-handler/docs/next/installation#usage-with-modals-on-android)

@@ -54,1 +54,11 @@ ### Example

```
### Props ✍️
| Property | Default | Type | Required
| ---- | ---- | ---- | ----
| `imageUrl` | `undefined` | `string` | `true`
| `width` | `undefined` | `number` | `true`
| `height` | `undefined` | `number` | `true`
| `onRequestClose` | `undefined` | `() => unknown` | `true`
| `onSingleTap` | `undefined` | `() => unknown` | `false`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet