question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Try to move upstream ejected HelloWorld template to a single index.js entry point

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mkonicekcommented, Feb 10, 2017

index.js is good (edited my comment above) 👍

2reactions
fsoncommented, Jul 28, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found