Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed deprecated expo variables. fixes #23 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}