升级 expo 52 后,registerApp 无响应
Closed this issue · 1 comments
Peek-A-Booo commented
环境:
"expo": "52.0.8"
"react-native": "0.76.2"
"expo-native-wechat": "^0.1.8"
调用后,无响应。回退到 expo 51 能够正常使用
await registerApp({
appid: 'xxxx',
universalLink: 'xxxx',
})
Peek-A-Booo commented
expo-modules-core 在升级到 expo 52 之后,进行了重构。
expo-native-wechat/src/index.ts
Line 1 in 335116d
这里应该调整为
import { LegacyEventEmitter as EventEmitter } from "expo-modules-core";