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

@exponent/react-native-action-sheet

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exponent/react-native-action-sheet - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

17

ActionSheet.android.js

@@ -6,3 +6,2 @@ 'use strict';

BackAndroid,
Dimensions,
Easing,

@@ -18,5 +17,5 @@ PixelRatio,

const DEVICE_HEIGHT = Dimensions.get('window').height;
const OPACITY_ANIMATION_TIME = 250;
const Y_ANIMATION_TIME = 250;
const OFFSCREEN_HEIGHT = 9999;
const PIXEL = 1 / PixelRatio.get();

@@ -89,4 +88,5 @@

onSelect: null,
sheetHeight: OFFSCREEN_HEIGHT,
overlayOpacity: new Animated.Value(0),
sheetY: new Animated.Value(DEVICE_HEIGHT),
sheetY: new Animated.Value(-OFFSCREEN_HEIGHT),
isWaitingForSheetHeight: false,

@@ -122,3 +122,3 @@ };

<Animated.View style={[styles.sheetContainer, {
top: this.state.sheetY,
bottom: this.state.sheetY,
}]}>

@@ -159,3 +159,3 @@ <View onLayout={this._onLayout} style={styles.sheet}>

this.state.overlayOpacity.setValue(0);
this.state.sheetY.setValue(DEVICE_HEIGHT);
this.state.sheetY.setValue(-this.state.sheetHeight);

@@ -208,3 +208,3 @@ Animated.timing(this.state.overlayOpacity, {

Animated.timing(this.state.sheetY, {
toValue: DEVICE_HEIGHT,
toValue: -this.state.sheetHeight,
easing: Easing.inOut(Easing.ease),

@@ -225,7 +225,8 @@ duration: Y_ANIMATION_TIME,

isWaitingForSheetHeight: false,
sheetHeight: height,
});
this.state.sheetY.setValue(DEVICE_HEIGHT);
this.state.sheetY.setValue(-height);
Animated.timing(this.state.sheetY, {
toValue: DEVICE_HEIGHT - height,
toValue: 0,
easing: Easing.inOut(Easing.ease),

@@ -232,0 +233,0 @@ duration: Y_ANIMATION_TIME,

{
"name": "@exponent/react-native-action-sheet",
"version": "0.1.1",
"version": "0.1.2",
"description": "A cross-platform ActionSheet for React Native",

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

@@ -46,8 +46,2 @@ # react-native-action-sheet [![Slack](http://slack.exponentjs.com/badge.svg)](http://slack.exponentjs.com)

getChildContext() {
return {
actionSheet: () => this._actionSheetRef,
};
}
_onOpenActionSheet() {

@@ -54,0 +48,0 @@ // Same interface as https://facebook.github.io/react-native/docs/actionsheetios.html

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