Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

react0.40版本出错: undefined is not an object (evaluating '_reactNative Wechat2.default.registerApp') #208

Closed
blade770 opened this issue May 16, 2017 · 7 comments

Comments

@blade770
Copy link

blade770 commented May 16, 2017

引用:为import WeChat from 'react-native-wechat';
但是到注册应用时就会报这样的错误:undefined is not an object (evaluating '_reactNative Wechat2.default.registerApp')
react-native@0.40.0
react-native-wechat@1.9.2
求解

@yorkie
Copy link
Owner

yorkie commented May 20, 2017

可以重新安装并 react-native link 一下~

@blade770
Copy link
Author

重新安装过了,还是这样……

@nukc
Copy link

nukc commented Jun 7, 2017

import * as WeChat from 'react-native-wechat';

@blade770
Copy link
Author

blade770 commented Jun 8, 2017

OK, 使用nukc 提供的方法可以正常使用了,thanks。

import * as WeChat from 'react-native-wechat';

@yorkie yorkie closed this as completed Jun 9, 2017
@holin
Copy link

holin commented Jul 19, 2017

我碰到类似问题。
undefined is not an object (evaluating 'Wechat.registerApp')
react-native@0.46.3
react-native-wechat@1.9.9

screen shot 2017-07-19 at 5 27 36 pm

Update:
请尝试手动安装步骤,可解决问题。自动link react-native link react-native-wechat 我这有问题。

Update 2:
https://github.com/facebook/react-native/releases
也许和 ”Fix react-native link issue when using multiple manifests (1ad08aa) - @dantman“ 这个bug 有关系。

@hwmiao
Copy link

hwmiao commented May 28, 2018

I encountered the same problem
react-native link react-native-wechat didnt work
just manual link

@hms111111
Copy link

null is not an object (evaluating 'WeChat.registerApp')

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

No branches or pull requests

6 participants