Closed burakkbilginn closed 5 months ago
Hi there!
You must not do this:
"@react-native-firebase/app": "^18.8.0",
"@react-native-firebase/messaging": "^18.8.0",
"@react-native-firebase/storage": "^19.1.2",
https://invertase.io/blog/react-native-firebase-versioning
All versions, same version
You might look at our e2e tests to see how we do uploads - it may offer insight:
https://github.com/invertase/react-native-firebase/blob/main/packages/storage/e2e/StorageTask.e2e.js
Can reopen if this continues to happen after lining things up
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Issue
Describe your issue here
🔥I am trying to upload an image from library in android emulator. But no response comes from this library, also the code of native firebase method of
uploadBytes(storageRef, file)
. On youtube tutorials and all the docs noone points to such an error. I am using react-native-image-picker to pick the uri of the image file. Then try to upload it to firebase storage. My code is as follows:Project Files
Android:
android/build.gradle
contents :apply plugin: "com.facebook.react.rootproject"
apply plugin: "com.android.application" apply plugin: 'com.google.gms.google-services' // <- Add this line apply plugin: "org.jetbrains.kotlin.android" apply plugin: "com.facebook.react" apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")
react { } def enableProguardInReleaseBuilds = false def jscFlavor = 'org.webkit:android-jsc:+'
android { ndkVersion rootProject.ext.ndkVersion buildToolsVersion rootProject.ext.buildToolsVersion compileSdk rootProject.ext.compileSdkVersion
}
dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") implementation("com.facebook.react:flipper-integration") // implementation platform('com.google.firebase:firebase-bom:32.7.2') implementation 'com.google.firebase:firebase-analytics'
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
firebase.json
for react-native-firebase v6:iOS
Click To Expand
#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby # N/A ``` #### `AppDelegate.m`: ```objc // N/A ```
Android
Click To Expand
#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `MainApplication.java`: ```java // N/A ``` #### `AndroidManifest.xml`: ```xml ```
Environment
Click To Expand
**`react-native info` output:** ``` System: OS: Windows 10 10.0.19045 CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U Memory: 16.41 GB / 31.75 GB Binaries: Node: version: 20.10.0 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.21 path: ~\AppData\Roaming\npm\yarn.CMD npm: version: 10.2.3 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-231.9392.1.2311.11255304 Visual Studio: Not Found Languages: Java: 17.0.9 Ruby: Not Found npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.6 wanted: 0.73.6 react-native-windows: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: true iOS: hermesEnabled: Not found newArchEnabled: Not found ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ x] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `"^18.8.0"` - **`Firebase` module(s) you're using that has the issue:** - ` "@react-native-firebase/app": "^18.8.0", "@react-native-firebase/messaging": "^18.8.0", "@react-native-firebase/storage": "^19.1.2", "firebase": "^10.8.0",` - **Are you using `TypeScript`?** - `No` & `VERSION`
React Native Firebase
andInvertase
on Twitter for updates on the library.