Skip to content

Error: undefined is not an object (evaluating 'EventPluginHub.injection') on [email protected] #1096

@jeremygrant

Description

@jeremygrant

Hi guys,

I just ran into this problem and thought I'd let you know. I'll try and dig into it a little more, but just in case someone else runs into it or wants to pick it up

The problem

React Native Web doesn't work with [email protected]

It seems that React DOM has removed some functionality that React Native Web requires

undefined is not an object (evaluating 'EventPluginHub.injection')

Which is likely due to facebook/react#13539 causing it to fail here https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/createElement/index.js#L17-L21

How to reproduce

https://codesandbox.io/s/542j6l8m8x

Expected behavior

That it all looks pretty

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.8.*
  • React (version): 16.5.0
  • Browser: Any

Cheers,
Jeremy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions