Try to move upstream ejected HelloWorld template to a single index.js entry point
See original GitHub issueThe HelloWorld template project in react-native/local-cli currently assumes that there will be two entry points: index.ios.js
and index.android.js
. CRNA projects start with a single main.js
(although this is fungible and could easily be called index.js
), which breaks on iOS (haven’t tested Android) once ejected to a regular RN project.
For now I’m implementing some dirty hacks around this, but would like to make the upstream template project(s) compatible with CRNA’s eject in the near term. I think this will just require a PR that I don’t have bandwidth to write and push through right now.
EDIT: this wouldn’t just require unifying the files, it looks like test and example code (and maybe docs?) assume that these files will be separate.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
I want to make make index.js as my Entry point - Stack Overflow
To make my code more readable I would like to split all my functions into different files. I have tried:
Read more >Don't use create-react-app: How you can set up your own ...
One way to add custom configs is to eject the app, but then it overrides ... Let's create a HelloWorld.js react component in...
Read more >3 Common Tasks — The Yocto Project ® 4.1.999 documentation
3 Common Tasks . This chapter describes fundamental procedures such as creating layers, adding new software packages, extending or customizing images, ...
Read more >Testing Node.js Applications - Simple Engineering
When trying to figure out how to approach modularization of nodejs background jobs, the following points may be quite a challenge on their...
Read more >Virtualization Deployment and Administration Guide
Starting, Resuming, and Restoring a Virtual Machine" Collapse section "20.6. ... The KVM hypervisor will switch between all of the virtual machines, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
index.js is good (edited my comment above) 👍
I’m working on a pull request to make this change to the HelloWorld template in react-native and all the tests and docs that refer to the old
index.ios.js
/index.android.js
files.