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

global.__expo is now gettting deprecated. #23

Open
rabbihossain opened this issue Dec 10, 2020 · 3 comments
Open

global.__expo is now gettting deprecated. #23

rabbihossain opened this issue Dec 10, 2020 · 3 comments

Comments

@rabbihossain
Copy link

rabbihossain commented Dec 10, 2020

In index.js - line 55 , there is a function that checks if we are on an expo environment.
The code block is this one in index.js.

const getExpoRoot = () => global.Expo || global.__expo || global.__exponent;
export const isExpo = () => getExpoRoot() !== undefined;

Due to the release of SDK40 they are giving a warning that global.__expo or global.Expo will be removed in SDK41. I think this one should be removed or replaced with something else.

@rafatrace
Copy link

rafatrace commented Dec 10, 2020

I also came to report this. For some reason I only got this warning in Android, maybe this information helps in some way.

EDIT:

It seems those two lines are not in use, why not just remove them?

@lokomass
Copy link

Same problem for me, if these lines are not used, is it possible to update this package ?
Thanks

@Egizas
Copy link

Egizas commented Feb 9, 2021

is someone planning to address this? Many libraries use this one in their dependencies

rabbihossain added a commit to rabbihossain/react-native-status-bar-height that referenced this issue May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants