From 70217905d6d3d5befbe6b285372ede3d80f3479d Mon Sep 17 00:00:00 2001 From: rabbihossain Date: Tue, 25 May 2021 17:53:14 +0600 Subject: [PATCH] removed deprecated expo variables. fixes #23 --- index.d.ts | 1 - index.js | 4 ---- index.js.flow | 1 - 3 files changed, 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3618a5e..cee2816 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,5 +6,4 @@ declare module 'react-native-status-bar-height' { export function isIPhone12(): boolean export function isIPhone12Max(): boolean export function isIPhoneWithMonobrow(): boolean - export function isExpo(): boolean; } diff --git a/index.js b/index.js index 7452f06..e6e471b 100644 --- a/index.js +++ b/index.js @@ -52,10 +52,6 @@ export const isIPhone12 = () => isIPhone12_v; export const isIPhone12Max = () => isIPhone12Max_v; export const isIPhoneWithMonobrow = () => isIPhoneWithMonobrow_v; -const getExpoRoot = () => global.Expo || global.__expo || global.__exponent; - -export const isExpo = () => getExpoRoot() !== undefined; - export function getStatusBarHeight(skipAndroid) { return Platform.select({ ios: statusBarHeight, diff --git a/index.js.flow b/index.js.flow index 3da9240..07bed33 100644 --- a/index.js.flow +++ b/index.js.flow @@ -6,5 +6,4 @@ declare module 'react-native-status-bar-height' { declare function isIPhone12(): boolean declare function isIPhone12Max(): boolean declare function isIPhoneWithMonobrow(): boolean - declare function isExpo(): boolean }