Skip to content

V2: Cannot find entry file index.android.js #3040

@larryranches

Description

@larryranches

Issue Description

Using RNN V2 and RN 0.54.4 on a brand new React Native project, I get the error of Cannot find entry file index.android.js.

I was able to fix the error by adding a index.android.js file with the RNN app launch code and all is working fine. It seems in the build.gradle file, its set to use the proper index.js root file

project.ext.react = [
    entryFile: "index.js"
]

but it's still looking for a index.android.js at the root of the RN project.

Is this supposed to be a pre-requisite step for v2 that should be in the docs for Android, or is it a bug?

Steps to Reproduce / Code Snippets / Screenshots

react-native run-android


Environment

  • React Native Navigation version: 2.0.2237
  • React Native version: 0.54.4
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator/Debug

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions