davecoates / rn-firebase-bridge

React Native Firebase Bridge
59 stars 8 forks source link

Cannot store object of type __NSDate #29

Closed jaimecorrea closed 7 years ago

jaimecorrea commented 7 years ago

Can only store objects of type NSNumber, NSString, NSDictionary, and NSArray.' was thrown while invoking setValue on target FirebaseBridgeDatabase with params...

davecoates commented 7 years ago

You can't save a date directly - you need to choose a representation (eg. timestamp or string) and save that