Skip to content

Does not work with New Architecture #60

Description

@dmpriso

Since New Arch uses lazy loading by default, the initialization in index.js doesn't work:

const {MobileDeviceManager} = NativeModules;

export default {
  ...MobileDeviceManager,
 (...)
}

As NativeModules is empty at that point.

See react/react-native#29228 (comment)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions