inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Execute connect to server in native way #296

Open redwind opened 6 years ago

redwind commented 6 years ago

Hi everyone !

My app take some seconds for bundle load, then execute connect to meteor server, so user have to wait for quite long time before they can use app. I wonder could we move ddp client lib to native code, then we can connect to server by native way while app bundle loading. May we do that?

Thanks !

jamesloper commented 6 years ago

Have you tried putting Meteor.connect() in your main file outside of any components or async callbacks? Some libraries belong in the JS layer, such as the DDP client, so that it keeps the bridge flowing freely.