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.