Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gongwenyi opened this issue Dec 19, 2016 · 2 comments

Comments

@gongwenyi
Copy link

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

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

目测是RN升级添加的模块,之前版本的RN是没有的,如果是自定义的原生模块导出则应该不会有此问题。

@rrrhys
Copy link

rrrhys commented Jan 18, 2019

Others arriving from google, see pull request: #50
Adding the corrected version as an npm dependency:
"@remobile/react-native-toast": "git+https://github.com/remobile/react-native-toast.git#278e03be216c34e15baf118445445e4df1ddcfa6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants