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

新版react-native没有DeviceEventEmitter.once方法 #386

Open
cheepion opened this issue Sep 24, 2021 · 2 comments
Open

新版react-native没有DeviceEventEmitter.once方法 #386

cheepion opened this issue Sep 24, 2021 · 2 comments

Comments

@cheepion
Copy link

cheepion commented Sep 24, 2021

源码里面直接移除了

@cheepion cheepion changed the title 打包出错:react-native-baidu-map:compileDebugAidl 新版react-native没有DeviceEventEmitter.once方法 Sep 29, 2021
@minileixu
Copy link

将Geolocation.js文件中的DeviceEventEmitter.once 换成DeviceEventEmitter.addListener即可

@JedShiMing
Copy link

将Geolocation.js文件中的DeviceEventEmitter.once逻辑DeviceEventEmitter.addListener微生物

那你还要即时销毁,否则监听会越积越多

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