Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Firestore returns invalid-argument while adding new data in react native ios

$
0
0

Im using firebase in React native which works fine on Android side but on IOS when i try to add item its show me this error.

[Error: [firestore/invalid-argument] Client specified an invalid argument. Note that this differs from failed-precondition. invalid-argument indicates arguments that are problematic regardless of the state of the system (e.g., an invalid field name).]

 let story = firestore().collection('paidItems').doc();        await story.set({             id: story.id,            name: title,            url : image,            passLink,            password,            createdAt: firestore.FieldValue.serverTimestamp(),        });

Already try new Object()Object.assign({}, data)

Thanks.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>