Hector-Chong/expo-native-wechat

升级 expo 52 后,registerApp 无响应

Closed this issue · 1 comments

环境:
"expo": "52.0.8"
"react-native": "0.76.2"
"expo-native-wechat": "^0.1.8"

调用后,无响应。回退到 expo 51 能够正常使用

await registerApp({
  appid: 'xxxx',
  universalLink: 'xxxx',
})

expo-modules-core 在升级到 expo 52 之后,进行了重构。

import { EventEmitter } from "expo-modules-core";

这里应该调整为
import { LegacyEventEmitter as EventEmitter } from "expo-modules-core";