jedwards1211 / meteor-webpack-react

(DEPRECATED) use jedwards1211/crater instead
https://github.com/jedwards1211/crater
374 stars 75 forks source link

build for mobile apps #118

Open mike623 opened 8 years ago

mike623 commented 8 years ago

just wanna know how to build the app for android/ios

gdub01 commented 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?

mike623 commented 8 years ago

just tried to modified dev.js to " meteor run ios-device and got "SyntaxError: Unexpected token '<'" on devices screen shot 2015-12-05 at 3 04 11 am

is the problem of es6 support?

AdamBrodzinski commented 8 years ago

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.

charleshan commented 8 years ago

:+1:

mike623 commented 8 years ago

any gd news @AdamBrodzinski ?

AdamBrodzinski commented 8 years ago

@mike623 sorry my free time slipped away :frowning: I doubt i'll be doing this in the near future.

mike623 commented 8 years ago

nvm take ur time lol

jedwards1211 commented 8 years ago

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...

AdamBrodzinski commented 8 years ago

@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)

jedwards1211 commented 8 years ago

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.

Mokto commented 8 years ago

Guys,

Please check react-native-meteor.

1.0.0 version is helping you to write your react-native applications exactly like meteor-webpack-react.

:)

mike623 commented 8 years ago

@Mokto wow! Seem it is a great project. Thx bro