Deprecated: While the code in this repo may still be valuable it no longer accurately represents how apps are built with React Native and Meteor. For a more up to date and continuously updated example please checkout the React Native Meteor Boilerplate.
A demo of React Native interacting with a Meteor backend. The goal of this project is to match the feature set of the web version of Meteor's Todos example.
Note: Still a work in progress.
You'll need two terminal windows to run this example.
cd meteor-todos/ && meteor
cd ReactNativeTodos/ && npm install && npm run ios
localhost
with your local IP address in the following files:AppDelegate.m
ReactNativeTodos/app/config/db/lib/ddpClient.js
I wanted to minimize the number of changes I made to the example provided by Meteor (created by running meteor create --example todos
). The only addition I made was adding a few Meteor methods in meteor-todos/lib/methods.js
.
The app builds on Android but that is the extent of my testing with it. Please feel free to test, fix, and contribute back.
You can use on android by running npm run android
inside the ReactNativeTodos
folder. Make sure to run npm install
first.