多个图像选择在 React Native 中不起作用

Multiple Image Selection not working in React Native

我尝试使用 React Native 图像裁剪选择器库,但我无法将它集成到我的项目中,因为它一直出现错误“null 不是一个对象(评估 ImagePicker.openPicker)

我 运行 在使用 React Native 时也遇到过这个问题。解决方案是在您的

ios/{appName}/info.plist

在该文件的顶部,确保您的目标号码:

"platform :ios, '10.0'"

与在Xcode中找到的目标号码相同:

Select your Project in the left navigator in XCode => Select the "General" tab => look under "Deployment Info" => "Target"

我的不匹配,所以我让它们分别在 10.0 匹配,现在包不再为空,并且运行良好