用的react-native-oh-tpl-react-native-view-shot-3.8.0-0.2.0.tgz这个版本。使用react-native-view-shot库的截图功能报错,无论使用vsRef.current?.capture()或者使用captureRef(vsRef),都报如下错误:
{"message": "componentSnapshot failed, message = undefined"}
用的react-native-oh-tpl-react-native-view-shot-3.8.0-0.2.0.tgz这个版本。使用react-native-view-shot库的截图功能报错,无论使用vsRef.current?.capture()或者使用captureRef(vsRef),都报如下错误:
{"message": "componentSnapshot failed, message = undefined"}
1 回答868 阅读✓ 已解决
1 回答1.2k 阅读
1 回答993 阅读
1 回答945 阅读
1 回答906 阅读
1 回答827 阅读
1 回答780 阅读
尝试将harmony/react\_native\_openharmony/src/main/cpp/RNOH/CppComponentInstance.h中的:
修改为: