I am a beginner in react-native world!
I have seen many tutorials on react-native. In all the tutorials they say that we should run this command to create a new app called myApp:
react-native init myApp
So, I have done the same thing. Now, when I see the files that are automatically generated, I see a difference between tutorials and my code.
In my code, I get an index.js file.
But the tutorials that I follow, I can see index.android.js and index.ios.js files.
I also want to have these two different files as I will develop different UI's for Android and iOS.
xxxx.ios.jsxxx.android.jsand they will load base on platform.Button.ios.jsandButton.android.js. Then when importing this component you are usingimport Button from './Button'and you will have them different on each platform. Consider reading official docs: facebook.github.io/react-native/docs/…