New to react-native and used create-react-native-app
to make the scaffolding for my first app. It made an App.js
which I guess is equivalent to most ap
The whole idea of having iOS and android files is for dealing with codes that needs to be written differently in android and iOS. For example, the Picker component in React Native works differently in iOS and Android. By splitting the code, you can easily split the code and maintain them. When running, React Native will find which file to use automatically based on the platform the app is running on.
Source: https://facebook.github.io/react-native/releases/0.26/docs/platform-specific-code.html