Socket
Socket
Sign inDemoInstall

react-native-modalize

Package Overview
Dependencies
520
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.12 to 2.0.13

lib/utils/libraries.d.ts

8

lib/index.js

@@ -36,2 +36,3 @@ "use strict";

const devices_1 = require("./utils/devices");
const libraries_1 = require("./utils/libraries");
const invariant_1 = require("./utils/invariant");

@@ -555,3 +556,4 @@ const compose_refs_1 = require("./utils/compose-refs");

const style = adjustToContentHeight ? styles_1.default.content__adjustHeight : styles_1.default.content__container;
return (React.createElement(react_native_gesture_handler_1.PanGestureHandler, { ref: panGestureChildrenRef, enabled: panGestureEnabled, simultaneousHandlers: [nativeViewChildrenRef, tapGestureModalizeRef], shouldCancelWhenOutside: false, onGestureEvent: handleGestureEvent, minDist: ACTIVATED, activeOffsetY: ACTIVATED, activeOffsetX: ACTIVATED, onHandlerStateChange: handleChildren },
const minDist = libraries_1.isRNGH2() ? undefined : ACTIVATED;
return (React.createElement(react_native_gesture_handler_1.PanGestureHandler, { ref: panGestureChildrenRef, enabled: panGestureEnabled, simultaneousHandlers: [nativeViewChildrenRef, tapGestureModalizeRef], shouldCancelWhenOutside: false, onGestureEvent: handleGestureEvent, minDist: minDist, activeOffsetY: ACTIVATED, activeOffsetX: ACTIVATED, onHandlerStateChange: handleChildren },
React.createElement(react_native_1.Animated.View, { style: [style, childrenStyle] },

@@ -610,3 +612,3 @@ React.createElement(react_native_gesture_handler_1.NativeViewGestureHandler, { ref: nativeViewChildrenRef, waitFor: tapGestureModalizeRef, simultaneousHandlers: panGestureChildrenRef }, renderContent()))));

const beginScrollYListener = beginScrollY.addListener(({ value }) => setBeginScrollYValue(value));
if (devices_1.isBelowRN65) {
if (libraries_1.isBelowRN65) {
react_native_1.Keyboard.addListener('keyboardDidShow', handleKeyboardShow);

@@ -623,3 +625,3 @@ react_native_1.Keyboard.addListener('keyboardDidHide', handleKeyboardHide);

beginScrollY.removeListener(beginScrollYListener);
if (devices_1.isBelowRN65) {
if (libraries_1.isBelowRN65) {
react_native_1.Keyboard.removeListener('keyboardDidShow', handleKeyboardShow);

@@ -626,0 +628,0 @@ react_native_1.Keyboard.removeListener('keyboardDidHide', handleKeyboardHide);

@@ -5,2 +5,1 @@ export declare const isIos: boolean;

export declare const isWeb: boolean;
export declare const isBelowRN65: boolean;
"use strict";
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBelowRN65 = exports.isWeb = exports.isAndroid = exports.isIphoneX = exports.isIos = void 0;
exports.isWeb = exports.isAndroid = exports.isIphoneX = exports.isIos = void 0;
const react_native_1 = require("react-native");

@@ -21,2 +20,1 @@ const { width, height } = react_native_1.Dimensions.get('window');

exports.isWeb = react_native_1.Platform.OS === 'web';
exports.isBelowRN65 = ((_b = (_a = react_native_1.Platform.constants) === null || _a === void 0 ? void 0 : _a.reactNativeVersion) === null || _b === void 0 ? void 0 : _b.minor) < 65;

@@ -25,3 +25,3 @@ "use strict";

const react_native_1 = require("react-native");
const devices_1 = require("./devices");
const libraries_1 = require("./libraries");
exports.useDimensions = () => {

@@ -34,3 +34,3 @@ const [dimensions, setDimensions] = React.useState(react_native_1.Dimensions.get('window'));

let dimensionChangeListener = null;
if (devices_1.isBelowRN65) {
if (libraries_1.isBelowRN65) {
react_native_1.Dimensions.addEventListener('change', onChange);

@@ -42,3 +42,3 @@ }

return () => {
if (devices_1.isBelowRN65) {
if (libraries_1.isBelowRN65) {
react_native_1.Dimensions.removeEventListener('change', onChange);

@@ -45,0 +45,0 @@ }

{
"name": "react-native-modalize",
"version": "2.0.12",
"version": "2.0.13",
"description": "A highly customizable modal/bottom sheet that loves scrolling content.",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc