Skip to content

Unable to start new react-native > 0.49 project with react-native-navigation #2201

@pepya2

Description

@pepya2

Issue Description

I have been struggling to start new react-native project with react-native 0.49 onwards, since they default to App.js not index.android.js or index.ios.js then giving me error "can not find entry file index.android.js" or even when i run in ios simulator gives "can not find entry file index.ios.js" but when i run project without linking and using react-native-navigation it works.

Steps to Reproduce / Code Snippets / Screenshots

Steps to Reproduce.

  1. Started new react-native project with simply react-native init navigationtest
    Default files and folders created are as follows..
    deffiles

  2. added react-native-navigation with yarn add react-native-navigation@latest

  3. followed integration steps outlined in here https://wix.github.io/react-native-navigation/#/

  4. started react-native packager

  5. tested to run on android simulator.. the following error (always exist from react-native^0.49 after adding react-native-navigation and link)

screenshot_2017-11-21-03-45-04

My Package.json file

{
	"name": "navigationtest",
	"version": "0.0.1",
	"private": true,
	"scripts": {
		"start": "node node_modules/react-native/local-cli/cli.js start",
		"test": "jest"
	},
	"dependencies": {
		"react": "16.0.0",
		"react-native": "0.50.3",
		"react-native-navigation": "^1.1.283"
	},
	"devDependencies": {
		"babel-jest": "21.2.0",
		"babel-preset-react-native": "4.0.0",
		"jest": "21.2.1",
		"react-test-renderer": "16.0.0"
	},
	"jest": {
		"preset": "react-native"
	}
}

i really want to use react-native > 0.49 with react-native-navigation.. there's a module that requires react-native^0.49.


Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions