# Warning: Functions are not valid as a React child

**URL:** <https://forum.codewithmosh.com/t/warning-functions-are-not-valid-as-a-react-child/13606>\
**Category:** React Native\
**Created:** [July 11, 2022, 7:21pm UTC](https://forum.codewithmosh.com/t/warning-functions-are-not-valid-as-a-react-child/13606 "2022-07-11T19:21:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vic-Expo](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@Vic-Expo](https://forum.codewithmosh.com/u/Vic-Expo)\
**Post date:** [July 11, 2022, 7:21pm UTC](https://forum.codewithmosh.com/t/warning-functions-are-not-valid-as-a-react-child/13606/1 "2022-07-11T19:21:07Z")

</div>

Forms section of the Tutorial:  
Why does the onPress generate this warning

onPress={handleSubmit}

---

<div class="post-metadata">

**Author:** ![Vic-Expo](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@Vic-Expo](https://forum.codewithmosh.com/u/Vic-Expo)\
**Post date:** [July 14, 2022, 8:01pm UTC](https://forum.codewithmosh.com/t/warning-functions-are-not-valid-as-a-react-child/13606/2 "2022-07-14T20:01:48Z")

</div>

Found the problem, the calling function had an additional onPress event in it, causing the error,
