swparkaust / image-repository

📷 An Expo, React Native, and Firebase Cloud Firestore based media sharing app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Repository

📷 An Expo, React Native, and Firebase Cloud Firestore based media sharing app

screenshot The preview images were created using 'Previewed' at previewed.app

Installation

yarn
expo start

Firestore Rules

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {

    match /posts/{post} {
      allow read: if true
      allow create: if request.auth.uid == request.resource.data.uid;
      allow update, delete: if request.auth.uid == resource.data.uid;
    }
    
    match /users/{userId} {
      allow read: if true
      allow write: if request.auth.uid == userId
      
      match /posts/{post} {
        allow read: if true
        allow write: if request.auth.uid == userId
      }
    }
  }
}

About

📷 An Expo, React Native, and Firebase Cloud Firestore based media sharing app

License:MIT License


Languages

Language:JavaScript 100.0%