我想用https://github.com/dgladkov/react-native-image-rotate https://github.com/dgladkov/react-native-image-rotate在反应本机项目中
我用它下载yarn add react-native-image-rotate
我把它链接到react-native link
我将它导入到我的组件中import ImageRotate from 'react-native-image-rotate';
但是当我尝试使用它时我有一个Cannot read property 'rotateImage' of undefined
我在 node_modules/react-native-image-rotate/index.js 中放置了一个断点:
const RCTImageRotateModule = NativeModules.ImageRotateModule;
并且在 NativeModules 对象中没有 ImageRotateModule 对象。
我怎样才能添加ImageRotateModule
in NativeModules
?
我使用的是react-native 0.50.3
Thx
react-native link react-native-image-rotate
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)