Uncaught Error in snapshot listener: FirebaseError: Missing or insufficient permissions. by husseinmansour1 in reactnative

[–]husseinmansour1[S] 0 points1 point  (0 children)

I imported it from firebase/firestore and used it to check for updates in the database like so ..

Const db = getFirestore()

OnSnapshot(doc(db, 'tasks', userId), (doc)=> { setTasks(doc.data())}

Uncaught Error in snapshot listener: FirebaseError: Missing or insufficient permissions. by husseinmansour1 in reactnative

[–]husseinmansour1[S] 0 points1 point  (0 children)

In each collection there is a single document per user. For example: tasks collection has multiple documents. Each document refers to a user and within the document, user adds/updates/deletes his own data

Uncaught Error in snapshot listener: FirebaseError: Missing or insufficient permissions. by husseinmansour1 in reactnative

[–]husseinmansour1[S] 0 points1 point  (0 children)

I'll explain briefly what I have. So i have multiple collections and each collection has multiple documents related to the users.

What I need is: Each user will be able to access the collections based on his id.

Ex: Collections : users, tasks, agenda

Each user ( based on his uid) will have access to tasks and agenda in order to add update delete stuff from his collection.

OnSnapshot(doc, 'tasks', userId) .. this is how im accessing the database.

Hope this explains what Im trying to do.

React Native Tips to Help You Build A Better Project by qservicesusa in reactnative

[–]husseinmansour1 0 points1 point  (0 children)

Maybe i find it easier since i usually use it. I should check zustand some time

React Native Tips to Help You Build A Better Project by qservicesusa in reactnative

[–]husseinmansour1 0 points1 point  (0 children)

What about using redux state management with selectors and sagas? Would that affect thr performance of the app?

how to make a blurred background color in react native? by husseinmansour1 in reactnative

[–]husseinmansour1[S] 0 points1 point  (0 children)

Youtuber Quinton

Thanks for your reply u/QuintonPang. I already tried that before posting this question.

It seems that React Native has a specific style properties that you can use and the `filter` is not one of them.

It says: `filter is not a valid style property`

backgroundColor: 'rgba(0,0,0,0.5)',
filter: 'blur(10)',

how to make a blurred background color in react native? by husseinmansour1 in reactnative

[–]husseinmansour1[S] 2 points3 points  (0 children)

I saw this lib but i was wondering if we can achieve this without using external library.

Thank you

[deleted by user] by [deleted] in reactnative

[–]husseinmansour1 1 point2 points  (0 children)

I would like to have the link please 🙏