Skip to content

TypeError: undefined is not a function (evaluating 'instance.render()') #22378

@jerinho

Description

@jerinho

Environment

  • OS: Windows 10
  • Node: 8.11.4
  • Yarn: 1.9.4
  • npm: 6.4.1
  • react-native-cli: 2.0.1
  • react-native: 0.57.5

Description

TypeError: undefined is not a function (evaluating 'instance.render()')
This error is located at: in AppContainer (at renderApplication.js:33)

Reproducible Demo

--- package.json ---

{
  "name": "test",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/core": "^7.1.6",
    "babel-core": "^6.26.3",
    "react": "16.6.1",
    "react-native": "0.57.5"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.2",
    "react-test-renderer": "16.6.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

very simple. just "react-native run-android" and tada !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions