在我的 react-native 应用程序中,我使用 react-native-image-picker 从相机或图库中选择图像。但是在launchCamera 和launchImageLibrary 中返回的resource.uri 都是undefined。我究竟做错了什么?
这是我的 react-native 应用程序基本构建的github 存储库。图像选择器代码在 addProductScreen.js 中
react-native react-native-image-picker
react-native ×1
react-native-image-picker ×1