Skip to content

Commit

Permalink
removed deprecated expo variables. fixes ovr#23
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbihossain committed May 25, 2021
1 parent e9cc873 commit 7021790
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7021790

Please sign in to comment.