But when I enter even one single letter differently, inside Text, styles, variable names, anything, it shows many errors "Error: Text strings must be rendered within a component.", and also some errors "Invariant Violation: View config getter callback for component div must be a function (received undefined). Make sure to start component names with a capital letter."
div component is not available in React Native, It's part of react-dom... So can't be used here.
For the Text issue, can you please share a screenshot or code block or regeneratable example.
I hope you are running for android, not web as in web it'll not run as mentioned in the step 10.
I have a weird issue
When I use exactly this file of yours: github.com/ShivamS136/react-native...
It runs fine with npx react-native run-android
But when I enter even one single letter differently, inside Text, styles, variable names, anything, it shows many errors "Error: Text strings must be rendered within a component.", and also some errors "Invariant Violation: View config getter callback for component
div
must be a function (receivedundefined
). Make sure to start component names with a capital letter."div
component is not available in React Native, It's part ofreact-dom
... So can't be used here.For the Text issue, can you please share a screenshot or code block or regeneratable example.
I hope you are running for android, not web as in web it'll not run as mentioned in the step 10.
Thank you for your reply. It is exactly the same code as you have in App.js, I am running for Android yes