Skip to content

Does not work with New Architecture #60

@dmpriso

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions