mondora / ddp.js

Isomorphic JavaScript DDP client
MIT License
207 stars 26 forks source link

Use with react-native #24

Closed Mokto closed 8 years ago

Mokto commented 8 years ago

Hi,

Your plugin is really nice. But I have got some issues when using it with react-native.

At first, I npm install your plugin et get some issues :

So I install this babel presets, but now I get :

It fails at this line : var originalGlobalValue = exports.EventEmitter; in EventEmitter module.

Have you got any idea ?

Thanks.

seeekr commented 8 years ago

exports would usually be defined if you were using a JS module loader at build and runtime. So look at your build and fix that, usually by following some recipe for a build for which there are many on the web. Can't be more specific than that.

Mokto commented 8 years ago

I didn't manage to make it work. So I have to copy your plugin into mine to be honest...

react-native-meteor