I'm new to React Native, but I noticed in the main index.js file, you register the App component. I see this as similar to attaching the App component to a root element in React. I know I still have to export each component I create, but do I have to call this line within every component as well?
AppRegistry.registerComponent('App', () => App)
No, you only need to do it for your top level app component.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With