Skip to content

_react.default.memo is not a function #1239

@jualexandre

Description

@jualexandre

I initiated a new project React Native Expo with expo init MyProject.

My dependencies:

"dependencies": {
    "@expo/vector-icons": "latest",
    "emoji-utils": "latest",
    "expo": "^32.0.0",
    "moment": "^2.24.0",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-gifted-chat": "^0.7.3",
    "react-native-keyboard-spacer": "^0.4.1",
    "react-native-nav": "^2.0.2",
    "react-navigation": "^3.7.1",
    "react-redux": "^7.0.2",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },

When I make export default connect(mapStateToProps)(Chat) on my component I've the error _react.default.memo is not a function.
On the other hand, if I pass the version of react-redux to 6.0.0 I do not have this error anymore...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions