ViroMedia集成android报错Lcom/facebook/react/bridge/WritableMap
解决1:版本降级: version 60.6 of RN. 解决参考:https://stackoverflow.com/questions/61605605/no-interface-method-putarray-in-class-writablemap-react-native/61626681解决2:更换依赖源:【hokaiyi...
解决1:
版本降级: version 60.6 of RN. 解决
参考:https://stackoverflow.com/questions/61605605/no-interface-method-putarray-in-class-writablemap-react-native/61626681
解决2:
更换依赖源:【hokaiyipFS】
https://github.com/viromedia/viro/issues/781
"react-viro": "^2.17.0"
替换:
"@citychallenge/react-viro": "^2.17.4"
hokaiyipFS调整后的源码: https://github.com/developBeetSoftD1/react-viro
{
附加 错误信息:error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|
解决方法 :
找到这个文件:\node_modules\metro-config\src\defaults\blacklist.js
替换内容为:windows的区别处理
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
}
最新的依赖,("@viro-community/react-viro": "^2.20.2")可用,android版本较新:https://github.com/ViroCommunity/viro/blob/main/readmes/INSTALL.md
更多推荐
所有评论(0)