Socket
Socket
Sign inDemoInstall

react-native-modal

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-modal - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

2

package.json
{
"name": "react-native-modal",
"version": "6.0.0",
"version": "6.1.0",
"description": "An enhanced React-Native modal",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -152,2 +152,16 @@ # react-native-modal

### The backdrop is not completely filled/covered on some Android devices (Galaxy, for one)
Checkout the package [react-native-extra-dimensions-android](https://github.com/Sunhat/react-native-extra-dimensions-android)
To use, here's an example:
```
const IOS = Platform.OS === "ios";
const WIDTH = Dimensions.get("window").width;
const HEIGHT = IOS
? Dimensions.get("window").height
: require("react-native-extra-dimensions-android").get("REAL_WINDOW_HEIGHT");
```
### How can I hide the modal by pressing outside of its content?

@@ -154,0 +168,0 @@

@@ -26,7 +26,8 @@ declare module "react-native-modal" {

onSwipe?: () => void;
onSwipeThreshold?: number;
swipeThreshold?: number;
style?: StyleProp<ViewStyle>;
swipeDirection?: string;
scrollTo: () => void;
scrollOffset: number;
swipeDirection?: "up" | "down" | "left" | "right";
scrollTo?: () => void;
scrollOffset?: number;
scrollOffsetMax?: number;
}

@@ -33,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc