meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

Mongo.ObjectID #59

Closed rajtejani closed 1 year ago

rajtejani commented 3 years ago

Is your feature request related to a problem? Please describe. Missing Mongo.ObjectID function.

TheRealNate commented 3 years ago

Hey @rajtejani, just so I understand what you are looking for, is this what you are referring to:

https://github.com/meteor/meteor/blob/46e00a875726dff078c59eaf7fdc7b956cf0a996/packages/mongo-id/id.js#L8

Thanks

rajtejani commented 3 years ago

Yes, @TheRealNate. How can I use that in react native?

TheRealNate commented 3 years ago

Hey @rajtejani,

I'm very sort for the late reply, something is messed up with my GitHub notifications.

What you're looking for will require an update to the codebase as the module is currently not public. I'll look at an update for this, but if you want a quick fix I'd recommend copying the code from the link I sent before. It only depends on ejson which can be installed via NPM and a Random hexString function which you'll need to bring in somehow.

github-actions[bot] commented 1 year ago

Closing this issue due to no activity. Feel free to reopen.