React-native-firebase: FieldValue.arrayUnion() and FieldValue.arrayRemove() APIs.

Created on 10 Aug 2018  路  8Comments  路  Source: invertase/react-native-firebase

These two features are not working.

please update firestore...

Most helpful comment

@vemundeldegard @graig12 - it's firebase.firestore.FieldValue.X

All 8 comments

and 'array-contains' is not working :(

Firebase Android SDK support is still being worked on, we'll add support in v5 / when android SDK support lands.

Any idea when v5 will be released with these featured included?

Hey guys, has this landed? I look forward to it very much

@Salakar

Has this been added? I just updated to v.5.1.0 and it still doesn't work. I get

Can't find variable: FieldValue

Do I need to do something special when updating? Like unlinking in Xcode for ios?

I tried using FieldValue like this:

      .firestore()
      .collection("like")
      .doc(token)
      .update({
        "likes":
        FieldValue.arrayRemove("vemund")
      })

Had this been fixed I am still unable to use arrayUnion

@vemundeldegard @graig12 - it's firebase.firestore.FieldValue.X

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mahyarr picture mahyarr  路  3Comments

dgruseck picture dgruseck  路  3Comments

escobar5 picture escobar5  路  3Comments

Draccan picture Draccan  路  3Comments

callmejm picture callmejm  路  3Comments