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!