Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPaul Janson
Courses Plus Student 2,670 PointsNew project not showing index.ios.js or index.android.js.. only index.js.
Trying to create my own project in Atom in the same fashion as TipCalculator. I can see an index.js file, but no index.ios.js. I found a possible solution online -- npm start -- --reset-cache. Re-opening the folder didn't show any changes.
Suggestions??
(any way to upload screenshots?)
3 Answers
Seth Kroger
56,413 PointsCreate React Native App won't do split index.js files, at least not anymore, and it's not needed it you are just starting to learn React Native. The current iterations of Create React Native App stick with a single index for both OS's unless you have good reason to split it. It also now runs the app on devices through a player/emulator called Expo instead of compiling separate apps for Android/iOS.
Paul Janson
Courses Plus Student 2,670 PointsHi Seth,
Create React Native App. Based on a quick search looks like I am not ejecting. Am just attempting to start playing around via Atom and the Simulator. Just getting off the ground with all this, so I'm probably missing something basic. Also could be a difference in my version, have noticed other discrepancies bt what shows on my screen and what is on the treehouse vids. Wish I could upload a screenshot.. Can I create my own folder called index.ios.js? Or just use index.js? Thanks for your response!
Paul Janson
Courses Plus Student 2,670 PointsGreat, thank you. Just getting acquainted with Expo as well. More questions to come I'm sure.
Seth Kroger
56,413 PointsSeth Kroger
56,413 PointsA little more detail please. React Native, yes? What toolchain are you using to create the project? CLI Tools or Create React Native App? If it's the latter, are you "ejecting" it from the start or leaving it as is? Have you attempted to build and run the app?