# React Native Advanced - Register a new user (PLEASE HELP)

**URL:** <https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699>\
**Category:** React Native\
**Created:** [November 15, 2020, 5:40am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699 "2020-11-15T05:40:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:40am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/1 "2020-11-15T05:40:08Z")

</div>

![Screen Shot 2020-11-15 at 1.35.33 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/d3e37ea53e94855f811740081b90548500ee21a3.jpeg)

I’ve been trying to get my RegisterScreen to work when sending a post request to the backend for registering a new user. I’m debugging in React Native tools but I still don’t know how to debug going line by line through my app code (VScode debugger for React Native tools doesn’t work, neither does chrome debug for React Native). Uggh, debugging in React Native is my #1 major pain.

For some reason, my App is sending the data and receiving a response from the server. However, the error message is not being rendered on the RegisterScreen. When a new user is successfully created, nothing is happening on the UI.

The error message I see on the UI is - An unhandled error was caught from submitForm()

---

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:40am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/2 "2020-11-15T05:40:55Z")

</div>

![Screen Shot 2020-11-15 at 1.35.43 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/728c49f546549b0ced701df85bbb8d82010d6782.png)

---

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:41am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/3 "2020-11-15T05:41:32Z")

</div>

![Screen Shot 2020-11-15 at 1.36.08 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/b8b9a1e9cb5766f0c3b5c5701d74bb6934513e56.jpeg)

---

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:42am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/4 "2020-11-15T05:42:31Z")

</div>

![Screen Shot 2020-11-15 at 1.36.16 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/bd3df9e7320211c07e405feaaf0bed114397306e.png)

---

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:46am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/5 "2020-11-15T05:46:55Z")

</div>

![Screen Shot 2020-11-15 at 1.46.33 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/434b4e80b561bea098404631fec306d98e52101a.png)

---

<div class="post-metadata">

**Author:** ![arsalonamini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/arsalonamini/32/183_2.png) [@arsalonamini](https://forum.codewithmosh.com/u/arsalonamini)\
**Post date:** [November 15, 2020, 5:57am UTC](https://forum.codewithmosh.com/t/react-native-advanced-register-a-new-user-please-help/699/6 "2020-11-15T05:57:52Z")

</div>

I’m dumb…The next video solved this.

 ![Screen Shot 2020-11-15 at 1.57.25 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/cc1157e1f805247772c96babbb122ada6be8f528.jpeg)

had to modify the useApi hook to return the response object
