• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Yet another “Objects are not valid as a React child ” in React Native

Resolved: Yet another “Objects are not valid as a React child ” in React Native

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am new in React Native but i have been working a bit with React before. I ‘ve got a comparable piece of code working in react some time ago, but now in react-native I keep on receiving this error message.
The code is simplified as much as possible.
Why am I getting this error? No async, i refer to object. etc… in this example.
My code in app.js:

Answer:

Your MessageList component is trying to render an object – {listMessages}. If you remove the curly brackets it should work:

If you have better answer, please add a comment about this, thank you!

react-native
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Why when i change manualy the url on my react page it ignores the .css file?

24/03/2023

Resolved: navigate and redirect not redirecting to path in react router

24/03/2023

Resolved: Time Complexity: Find the number of people who know a secret leetcode 2327

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.