📷 An Expo, React Native, and Firebase Cloud Firestore based media sharing app
The preview images were created using 'Previewed' at previewed.app
yarn
expo start
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
}
}
}
}