question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage of deprecated __expo global

See original GitHub issue

Current behaviour

After upgrading expo to v40 and running an app I get a __expo global deprecation warning

Expected behaviour

This lib should be compatible with new/updated Expo guidelines.

Solution

We need to follow steps described here in official expo docs: https://github.com/expo/fyi/blob/master/deprecated-globals.md

The code that is causing deprecation warning is located here: https://github.com/callstack/react-native-paper/blob/master/src/components/MaterialCommunityIcon.tsx#L19-L25

Your Environment

software version
ios or android ios 14.2
react-native https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz
react-native-paper 4.4.1
node 12.8.4
npm or yarn yarn 1.22.5
expo sdk 40.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hirbodcommented, Dec 16, 2020

I can confirm its fixed for me!

1reaction
Trancevercommented, Dec 15, 2020

It should be fixed in v4.5.0. Please reopen if you still encounter this issue on v4.5.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Expo SDK
Expo maintains ~6 months of backward compatibility. Once an SDK version has been deprecated, you will no longer be able to use the...
Read more >
React Native expo-permission deprecated what to use now?
expo-permissions has been deprecated in favor of module-specific permissions methods You should migrate from using Permissions.
Read more >
expo-permissions is now deprecated - You.com - You.com
expo-permissions has been deprecated in favor of module-specific permissions methods You should migrate from using Permissions.askAsync and Permissions.
Read more >
expo-cli | Yarn - Package Manager
Assorted Expo Dev Tools. Packages used in Expo CLI and related tooling. Contains source for the legacy global Expo CLI. The new local...
Read more >
Before You Start | React Native School
This module leverages Expo, though you're welcome to use standard React ... npm install expo-cli --global npm WARN deprecated joi@14.0.4: This version has ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found