Okay, for some reason firebase was not able to find the default bucket. So every time that I tried to put a file into the storage (which I had initiated as storage()
) It resulted in a "No object reference exists..." Which just meant that the bucket could not be found... So what I did to fix it is to initialize the storage as if it is a custom bucket:
import { firebase } from "@react-native-firebase/storage";
const storage = firebase.app().storage(process.env.BUCKET_URL);
export default storage;
Still I have no idea why it can't find the default bucket...