react-native-push-notification-popup
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"name": "react-native-push-notification-popup", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "React Native Push Notification Popup Component", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -143,4 +143,8 @@ # React Native Push Notification Popup | ||
### Debugging | ||
### Using demo project | ||
- Refer to [this demo project](https://github.com/carsonwah/react-native-push-notification-popup-demo-local) for local debugging | ||
### General Steps | ||
1. Clone this repo | ||
@@ -147,0 +151,0 @@ 2. Run `yarn --production` |
import { DefaultPopup } from './views'; | ||
export default DefaultPopup; |
@@ -8,2 +8,4 @@ import { Dimensions, Platform, StatusBar } from 'react-native'; | ||
const STATUSBAR_IP12MAX_HEIGHT = 47; | ||
const STATUSBAR_IP14PRO_HEIGHT = 54; | ||
const STATUSBAR_IP14PROMAX_HEIGHT = 54; | ||
@@ -22,2 +24,8 @@ const X_WIDTH = 375; | ||
const IP14PRO_WIDTH = 393; | ||
const IP14PRO_HEIGHT = 852; | ||
const IP14PROMAX_WIDTH = 430; | ||
const IP14PROMAX_HEIGHT = 932; | ||
const { height: W_HEIGHT, width: W_WIDTH } = Dimensions.get("window"); | ||
@@ -30,2 +38,4 @@ | ||
let isIPhone12Max_v = false; | ||
let isIPhone14Pro_v = false; | ||
let isIPhone14ProMax_v = false; | ||
let isIPhoneWithMonobrow_v = false; | ||
@@ -50,2 +60,10 @@ | ||
statusBarHeight = STATUSBAR_IP12MAX_HEIGHT; | ||
} else if (W_WIDTH === IP14PRO_WIDTH && W_HEIGHT === IP14PRO_HEIGHT) { | ||
isIPhoneWithMonobrow_v = true; | ||
isIPhone14Pro_v = true; | ||
statusBarHeight = STATUSBAR_IP14PRO_HEIGHT; | ||
} else if (W_WIDTH === IP14PROMAX_WIDTH && W_HEIGHT === IP14PROMAX_HEIGHT) { | ||
isIPhoneWithMonobrow_v = true; | ||
isIPhone14ProMax_v = true; | ||
statusBarHeight = STATUSBAR_IP14PROMAX_HEIGHT; | ||
} | ||
@@ -52,0 +70,0 @@ } |
@@ -0,0 +0,0 @@ import React, { Component } from 'react'; |
@@ -0,0 +0,0 @@ import DefaultPopup from './DefaultPopup'; |
@@ -0,0 +0,0 @@ /// <reference types="react"/> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24064
457
168