Open mike623 opened 8 years ago
I'm wondering this too. Just found this repo https://github.com/spencercarli/meteor-todos-react-native with a connection to dpp. But it uses a completely separate code base than Meteor. (naturally)
Then there's this one: https://github.com/benoitvallon/react-native-nw-react-calculator that has react native and web in the same codebase. They swap out the renders depending on which device you build, but keep the other logic.
So what would be a best practice? I'm guessing use the same codebase and just swap the render methods during the build and then connect to dpp on the route level?
just tried to modified dev.js to " meteor run ios-device and got "SyntaxError: Unexpected token '<'" on devices
is the problem of es6 support?
I'm going to try to check this out over the weekend as I have a meteor cordova project now. I'll post back here with details.
:+1:
any gd news @AdamBrodzinski ?
@mike623 sorry my free time slipped away :frowning: I doubt i'll be doing this in the near future.
nvm take ur time lol
I haven't used react-native
but from what I've seen it's different enough that a completely different app skeleton would be needed to use it with Meteor. Doesn't react-native
have its own build toolchain? That might make it more difficult to use with Meteor...
@jedwards1211 yeah it's a different app structure in general. You basically replace AJAX calls with DDP methods and subscriptions. I just used a REST API on a Meteor server for simplicity (albeit not realtime)
Right, though when starting a Meteor web app from the ground up I use DDP methods instead of AJAX calls anyway :) But that's not really the main difference I'm talking about, rather doesn't react-native
package your files up and send them to the device itself? I'm not sure how we would work Meteor into that process.
Guys,
Please check react-native-meteor.
1.0.0 version is helping you to write your react-native applications exactly like meteor-webpack-react.
:)
@Mokto wow! Seem it is a great project. Thx bro
just wanna know how to build the app for android/ios