# useLocation issue

**URL:** <https://forum.codewithmosh.com/t/uselocation-issue/11986>\
**Category:** React Native\
**Created:** [April 19, 2022, 2:00pm UTC](https://forum.codewithmosh.com/t/uselocation-issue/11986 "2022-04-19T14:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benbella](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Benbella](https://forum.codewithmosh.com/u/Benbella)\
**Post date:** [April 19, 2022, 2:00pm UTC](https://forum.codewithmosh.com/t/uselocation-issue/11986/1 "2022-04-19T14:00:21Z")

</div>

How do I solve this error?  
null is not an object (evaluating ‘\_await$Location$getLa.coords’)  
at app\hooks\useLocation.js:7:22 in getLocation
