react-native-popup-menu
Advanced tools
Comparing version 0.12.4 to 0.12.5
{ | ||
"name": "react-native-popup-menu", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"description": "extensible popup/context menu for react native", | ||
@@ -23,2 +23,3 @@ "main": "src/index.js", | ||
"homepage": "https://github.com/instea/react-native-popup-menu", | ||
"typings": "src/index.d.ts", | ||
"jest": { | ||
@@ -25,0 +26,0 @@ "transform": { |
@@ -17,2 +17,8 @@ # react-native-popup-menu | ||
Community driven features: | ||
* Support for UWP and react-native-web | ||
* Typescript definitions | ||
We thank our community for maintaining features that goes over our scope. | ||
| Context Menu, Slide-in Menu | Popover | | ||
@@ -19,0 +25,0 @@ |---|---| |
import React from 'react'; | ||
import { I18nManager, Animated, Easing, StyleSheet } from 'react-native'; | ||
import { I18nManager, Animated, Easing, StyleSheet, PixelRatio } from 'react-native'; | ||
import { OPEN_ANIM_DURATION, CLOSE_ANIM_DURATION } from '../constants'; | ||
@@ -95,3 +95,3 @@ | ||
backgroundColor: 'white', | ||
width: 200, | ||
width: PixelRatio.roundToNearestPixel(200), | ||
@@ -98,0 +98,0 @@ // Shadow only works on iOS. |
186262
1549
92