Skip to content

Native module Toast tried to override Toast for module name RCTToast. if this was your intention, set canOverrideExistingModule=true #19

Description

@gongwenyi

在安卓上报这个错,在Toast.java中重写canOverrideExistingModule方法解决了这个问题,我用的是rn0.37

    @Override
    public boolean canOverrideExistingModule() {
      return true;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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