bugsnag / bugsnag-expo

MIT License
10 stars 5 forks source link

Handle null Constants.expoConfig and Constants.expoGoConfig #145

Closed yousif-bugsnag closed 11 months ago

yousif-bugsnag commented 11 months ago

Goal

This PR builds on #143 which fixes a crash in configuration attempting to read a null Constants.expoGoConfig ( reported in #142)

The reported crash occurs because ExpoGoConfig is null in some circumstances, however the Expo docs state that both ExpoConfig and ExpoGoConfig could potentially be null, so this PR ensures guards are in place whenever either of those are accessed.

gingerbenw commented 11 months ago

don't forget the changelog :D