-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] App crash on iOS when opening the image picker on Expo 51 馃敟 #2550
Comments
Hey @jakubdrozdek, this seems to be specific to the Note: You can use Expo 51 with expo-media-library |
@khushal87 Thank you, worked like a charm! :) |
@khushal87 Unfortunately, I couldn't build the Android app with
Any ideas? |
As the error states, you don't seem to have |
https://docs.expo.dev/versions/latest/sdk/build-properties/#example-appjson-with-config-plugin you can specify it through this as well |
@khushal87 I use the Expo managed flow and build.gradle is generated by the prebuild step: // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '34.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.23'
ndkVersion = "26.1.10909125"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
classpath 'com.google.gms:google-services:4.3.3'
classpath('com.android.tools.build:gradle')
classpath('com.facebook.react:react-native-gradle-plugin')
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
}
}
// ...
} Here is my {
plugins: [
[
'expo-build-properties',
{
android: {
minSdkVersion: 26,
buildToolsVersion: '34.0.0',
compileSdkVersion: 34,
targetSdkVersion: 34,
},
ios: {
deploymentTarget: '13.4',
extraPods: [
{ name: 'GoogleUtilities', modular_headers: true },
{ name: 'FirebaseABTesting', modular_headers: true },
{ name: 'FirebaseCore', modular_headers: true },
{ name: 'FirebaseCoreInternal', modular_headers: true },
{ name: 'FirebaseCoreExtension', modular_headers: true },
{ name: 'FirebaseInstallations', modular_headers: true },
{ name: 'GoogleDataTransport', modular_headers: true },
{ name: 'nanopb', modular_headers: true },
],
},
},
],
],
} It looks to me that the |
It might be related to this change: |
I can't update expo to version 51 because of this library. How can we make the application work with offline mode enabled in expo 51? |
Hey, so on raising an issue on the expo-media-library's end, it has been fixed recently, and this should be released anytime soon, and that should fix the problem with image uploads. |
Hey @vitorcamachoo, since expo 51 makes the bridgeless mode default(update as per comment below: if new arch is enabled), the library react-native-quick-sqlite is not compatible with it, and we are aware of the limitation. That is why we plan to move to the What's the exact issue you are facing with |
Just to clarify: this is true only when you enable the new architecture in your app and for every project using RN 0.74. |
Oh yes, that should be the case I missed mentioning if new architecture is enabled above. Apologies. |
The error I am facing is related to sdk versions. |
Assuming this is related to the PR on |
About this I would suggest doing |
With the release 16.0.4 of |
@khushal87 hmm looks like the latest version of expo-media-library is 16.0.3 |
@softwarebyze Yes, but 16.0.4 exists and is available to use, it's just tagged as |
@tsapeta Gotcha. Thank you! |
Issue
After upgrading Expo to 51, my app started to crash on the iOS simulator whenever I opened the image picker (next to the message input). Works fine on Android.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The image picker should open as expected.
Project Related Information
Customization
Click To Expand
Offline support
Environment
Click To Expand
package.json
:(I removed other deps from the snippet.)
react-native info
output:stream-chat-react-native
version you're using that has this issue:Additional context
Screenshots
Click To Expand
The text was updated successfully, but these errors were encountered: