Closed erbud closed 3 years ago
I don't understand this, you're going to have to be way more specific. AFAIK I don't use any expo-specific code.
@SteffeyDev when I installing and using react-native-popover-view:
<Popover
from = {(
<TouchableOpacity>
<Text> {date.day} </Text>
</TouchableOpacity>
)}>
…
</Popover>
The following warning is displayed when activating and displaying the popover:
_The global "_expo" and "Expo" objects will be removed in SDK 41. Learn more about how to fix this warning: https://expo.fyi/deprecated-globals
I'm trying to debug to confirm what causes the warning
Regards.
If you remove all the Popovers from your app, but nothing else, does the warning go away?
@SteffeyDev yes, the warning only is displayed when show and hide the Popover. On tap the component (to show) and on tap outside the Popover (to hide).
Well, I just searched my source code to be sure and am not using Expo globals (I don't even have expo as a dependency). That means that either react-native-safe-area-view
(my only dependency) is using Expo globals (I am ditching this library soon anyways), Expo is bugging out and giving bad warning, or the issue is in your code or another dependency you are using. Either way, nothing I can do, so going to close this. You are free to look through the source code if you would like, it is all here on GitHub for you to review.
@SteffeyDev sorry bro., the warning is triggered by the sentry-expo
package …
Is your feature request related to a problem? Please describe. The global "__expo" and "Expo" objects will be removed in SDK 41.
Describe the solution you'd like Use a module import Constants (expo-constants) rather than a deprecated global API.