SDK Version:40
Platforms(Android/iOS/web/all): Android/iOS
Hi, I am getting this warning after upgrading to Expo 40:
Your project is accessing the following APIs from a deprecated global rather than a module import: Constants (expo-constants).
The global “__expo” and “Expo” objects will be removed in SDK 41. Learn more about how to fix this warning: fyi/deprecated-globals.md at main · expo/fyi · GitHub
I did found some discussions about, but I any of them helped me getting rid of it. Is anyone willing to assist?
I have search for “__expo” on my project (and modules) but there is any reference…
Here are my modules:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@expo-google-fonts/roboto": "^0.1.0",
"@gorhom/animated-tabbar": "^2.1.1",
"@react-native-community/checkbox": "^0.5.6",
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.9.2",
"axios": "^0.21.1",
"babel-preset-es2015": "^6.24.1",
"expo": "^40.0.0",
"expo-ads-admob": "^8.4.0",
"expo-app-loading": "^1.0.1",
"expo-constants": "^10.0.1",
"expo-font": "^8.4.0",
"expo-image-picker": "^10.0.0",
"expo-localization": "^10.0.0",
"expo-notifications": "^0.9.0",
"expo-status-bar": "~1.0.3",
"i18n-js": "^3.7.1",
"moment-timezone": "^0.5.32",
"native-base": "^2.15.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz",
"react-native-admob-native-ads": "^0.3.9",
"react-native-autocomplete-input": "^4.2.0",
"react-native-country-picker-modal": "^2.0.0",
"react-native-elements": "^3.1.0",
"react-native-gesture-handler": "^1.9.0",
"react-native-material-menu": "^1.1.3",
"react-native-reanimated": "^1.13.0",
"react-native-router-flux": "^4.2.0",
"react-native-safe-area-context": "^3.1.9",
"react-native-screens": "^2.17.1",
"react-native-search-box": "0.0.20",
"react-native-search-header": "^0.3.5",
"react-native-settings-list": "^1.8.0",
"react-native-svg": "^12.1.0",
"react-native-toast-message": "^1.3.5",
"react-native-user-avatar": "^1.0.7",
"react-native-web": "^0.14.12",
"rn-modal-picker": "^0.3.0"
},
"devDependencies": {
"@babel/core": "^7.12.13",
"babel-preset-expo": "8.3.0"
},
"private": true
}
Thanks in advance.