react-native-meteor
react-native-meteor copied to clipboard
Doesn't Node DDP work?
First of work, nice work.
Second, I was wondering if I could use the Node DDP client since react native allows npm modules. Is there are a problem using the Node client or is ObjectiveDDP a personal choice?
Thanks @fardeemmunir! Was fun putting this together.
Is there are a problem using the Node client or is ObjectiveDDP a personal choice?
Websockets aren't available in React Native JS runtime (yet)
However, there's been some great progress made to get the websocket Polyfill so it can be used directly. Once that's in place it will be pretty simple to get something like Node DDP working. I'd actually prefer Node DDP or Asteroid since they are more commonly used and are entirely JS.
I'll spin up a new repo once the Polyfill is ready with a similar project. It will be interesting to see if there are any performance differences, and I'm anticipating less code.
Would you recommend using react native and meteor using your approach right now for a production app?
It's a decent solution, but I would recommend waiting. I've generated a PR for the Websocket Polyfill for React Native today - https://github.com/facebook/react-native/pull/890
Hey @fardeemmunir I've got a working example using the WebSocket polyfill which has parity with this project. https://github.com/hharnisc/react-native-meteor-websocket-polyfill