react-native-modal
Advanced tools
Comparing version 6.4.0 to 6.5.0
{ | ||
"name": "react-native-modal", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "An enhanced React-Native modal", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -25,3 +25,3 @@ # react-native-modal | ||
<img src="https://raw.githubusercontent.com/mmazzarolo/react-native-modal-datetime-picker/master/extras/datetimepicker-ios.gif" height="300" /> | ||
<img src="https://raw.githubusercontent.com/pistonsky/react-native-modal/master/extras/example-modal.gif" height="300" /> | ||
<img src="https://raw.githubusercontent.com/pistonsky/react-native-modal/master/.github/example-modal.gif" height="300" /> | ||
</p> | ||
@@ -28,0 +28,0 @@ |
@@ -6,2 +6,3 @@ declare module "react-native-modal" { | ||
type AnimationConfig = string | { from: Object; to: Object }; | ||
type Orientation = "portrait" | "portrait-upside-down" | "landscape" | "landscape-left" | "landscape-right"; | ||
@@ -33,3 +34,3 @@ export interface ModalProps { | ||
scrollOffsetMax?: number; | ||
supportedOrientations?: string[]; | ||
supportedOrientations?: Orientation[]; | ||
} | ||
@@ -36,0 +37,0 @@ |
@@ -61,3 +61,11 @@ import React, { Component } from "react"; | ||
scrollOffsetMax: PropTypes.number, | ||
supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(["portrait", "portrait-upside-down", "landscape", "landscape-left", "landscape-right"])), | ||
supportedOrientations: PropTypes.arrayOf( | ||
PropTypes.oneOf([ | ||
"portrait", | ||
"portrait-upside-down", | ||
"landscape", | ||
"landscape-left", | ||
"landscape-right" | ||
]) | ||
) | ||
}; | ||
@@ -64,0 +72,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
31734
527