Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

TypeError: Cannot read property 'number' of undefined #139

Description

@ToniChaz

I have an error with all my Views components

 FAIL  __tests__/components/Login.spec.js
  ● Test suite failed to run

    TypeError: Cannot read property 'number' of undefined
      
      at Object.<anonymous> (node_modules/react-native-mock/build/propTypes/LayoutPropTypes.js:21:37)
      at Object.<anonymous> (node_modules/react-native-mock/build/propTypes/ViewStylePropTypes.js:6:22)
      at Object.<anonymous> (node_modules/react-native-mock/build/components/View.js:6:25)

My deps:

"dependencies": {
    "react": "^16.0.0-alpha.13",
    "react-native": "^0.45.1",
    "react-native-image-picker": "0.26.3",
    "react-native-linear-gradient": "2.0.0",
    "react-native-material-textfield": "0.6.0",
    "react-native-mock": "^0.3.1",
    "react-native-scrollable-tab-view": "0.6.6",
    "react-native-snackbar": "0.3.6",
    "react-native-vector-icons": "4.2.0",
    "react-navigation": "1.0.0-beta.11",
    "react-redux": "5.0.5",
    "redux-saga": "0.15.3",
    "styled-components": "^2.1.0"
  },
  "devDependencies": {
    "babel-jest": "20.0.0",
    "babel-preset-react-native": "1.9.2",
    "chai": "4.0.2",
    "chai-as-promised": "7.0.0",
    "colors": "1.1.2",
    "cors": "2.8.3",
    "cucumber": "2.0.0-rc.9",
    "debug": "2.6.8",
    "express": "4.15.3",
    "jest": "20.0.0",
    "lodash": "4.17.4",
    "react-test-renderer": "16.0.0-alpha.6",
    "redux": "3.6.0",
    "standard": "10.0.2",
    "wd": "1.2.0"
  },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions