1. Home
  2. Docs
  3. Documentation
  4. Firebase Integration
  5. Enable Firebase Storage

Enable Firebase Storage

If your mobile app needs access to Firebase Storage (e.g. for uploading photos and videos, for instance), you have to enable Firebase Storage, so that the functionality works properly. To enable it, just go to Storage in the left menu. This is how your Storage rules need to look like in order for the app to function correctly:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;

firebase storage react native

Enable Photo & Video Uploads on iOS

React Native 0.63.2 comes with a bug when accessing camera and the photo library. In order to work around this bug, you need to override RCTLocalAssetImageLoader.m entirely.

  1. Copy the working source code from this gist
  2. Open node_modules/react-native/Libraries/Images/RCTLocalAssetImageLoader.m file (in Xcode, Sublime, vim, or any other text editor)
  3. Paste/Override the entire file with the content of the gist from step 1.
  4. Re-run the app in Xcode

Warning: You MUST do this every time you reinstall node_modules. So if you remove the node_modules folder (by cleaning the project, starting a fresh project, etc), you must do this change again.