react-native-modal
Advanced tools
Comparing version 6.0.0 to 6.1.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31096
514
220