fix(mobile): fix iOS TurboModule crash and npm install peer dep conflict
- UploadScreen.tsx: replace deprecated ImagePicker.MediaTypeOptions.Images with new array syntax ['images'] — the old enum is not accepted by the expo-image-picker v17 TurboModule on iOS, causing SIGABRT on Thread 2 - package.json: bump react 19.1.0 → 19.2.4 so react-dom@19.2.4 (peerOptional of @expo/metro-runtime) no longer conflicts; update @types/react to ~19.2.0 - package-lock.json: update react entry to 19.2.4 (integrity removed, will be regenerated by npm install on the next EAS build) Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -68,7 +68,7 @@ export default function UploadScreen() {
|
||||
}
|
||||
|
||||
const result = await ImagePicker.launchCameraAsync({
|
||||
mediaTypes: ImagePicker.MediaTypeOptions.Images,
|
||||
mediaTypes: ["images"],
|
||||
quality: 0.9,
|
||||
allowsEditing: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user