undefined is not an object, evaluating t.latitude

Expo CLI 3.21.13 environment info:
System:
OS: Windows 7 6.1.7601
Binaries:
Node: 12.16.3 - C:\Program Files (x86)\nodejs\node.EXE
npm: 6.14.4 - C:\Program Files (x86)\nodejs\npm.CMD
npmPackages:
expo: ~38.0.8 => 38.0.8
react: ~16.11.0 => 16.11.0
react-dom: ~16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.1.tar.
gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
react-navigation: ^4.4.0 => 4.4.0.

Issues:
Running my app on my device works fine in terms of getting location of the users, and sending to the database (firebase).
But the minute i build into an apk, it always returns an error:::
error.
i don’t know why this error only shows during development.
I’d be glad if you can help me out