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 }