Skip to content
Advertisement

React Native Firestore remove object in array

I cannot delete object inside my array of object in a document from Firestore.

Here my Document enter image description here

I have tried that

JavaScript

}

JavaScript

Here the error msg:

JavaScript

Someone can help me ? Or do you have any ideas how can i do for delete and update a object inside an array ?

EDIT: Is fix, it was bad formating of JS code

Advertisement

Answer

Fix

I was a bad formating of the JS Code.

The working code is:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement