meteor-react-native icon indicating copy to clipboard operation
meteor-react-native copied to clipboard

Mongo.ObjectID

Open rajtejani opened this issue 4 years ago • 3 comments
trafficstars

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

rajtejani avatar Mar 31 '21 06:03 rajtejani

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

TheRealNate avatar Apr 02 '21 01:04 TheRealNate

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

rajtejani avatar Apr 03 '21 04:04 rajtejani

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.

TheRealNate avatar Apr 09 '21 21:04 TheRealNate

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

github-actions[bot] avatar Dec 02 '22 02:12 github-actions[bot]