通过UIManager将‘screen’,'window',View生成图片的问题(UIManager.takeSnapshot should not be called directly)
-
我的项目RN版本是0.47
为了将UI中的View转为图片,采用了如下写法,但是在takeToImage方法中不管是采用UIManager的takeSnapshot方法还是React Native的takeSnapshot方法都会报错。前者报错UIManager.takeSnapshot should noy be called directly,Use ReactNative.takeSnapshot instead 后者保错 undefined is not a function(UImanager._takeSnapshot)image url))~~***
-
请问楼主解决了吗?