Note this is an experiment, subject to change.
This works with the Meteor todos
example project.
I'm using a pure JavaScript DDP client to talk to Meteor (via DDP).
https://docs.npmjs.com/getting-started/installing-node
$ npm install
An example that brings Meteor and React Native together (via WebSocket polyfill)
License: MIT License
Note this is an experiment, subject to change.
This works with the Meteor todos
example project.
I'm using a pure JavaScript DDP client to talk to Meteor (via DDP).
https://docs.npmjs.com/getting-started/installing-node
$ npm install
Hi, I have the Todos app running locally on port 3000, and my React Native app running simultaneously. When I call the ddpClient.subscribe('publicLists'), I am not seeing any instances when I use debugger in the browser console. Am I able to fetch the existing entries initially, without observing the add, delete, and update changes? Some more explanation on this would help a lot. Thank you.
Hi - I was trying your project out and I found that I was able to subscribe to publicLists/privateLists as in your example, but when I try to subscribe to "todos" and observe the todos collection, nothing happens.
I wonder if it's an issue with passing in a parameter?
I have forked and made an example here: https://github.com/garethdown44/react-native-meteor-websocket-polyfill.git
If you could let me know if it's a bug in your code, or something I am doing wrong I would really appreciate it.
Thanks
Hi,
This is the great work to glue both react-native and Meteor. And the example works smoothly.
Right now The react-native app can display the list reactively, once the list is CRUD by other web front-end. I am wondering how I can do this on the react-native app. Would you please give me a short example?
Thanks,
Chen
@hharnisc I'm getting this 'RCTRootView.h' file not found' error.
How do I create this file?
When i build the project, i get this error i'm not sure how to fix. But the app at the simulator stays at an eternal "Loading lists..." state. Any ideas?
This is the error at the xcode output:
2015-09-06 19:35:26.010 [info][tid:com.facebook.React.JavaScript] "Running application "todos" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF"
2015-09-06 19:35:26.144 [error][tid:com.facebook.React.JavaScript] "Error: Can't find variable: process
stack:
_ensureQueued index.ios.bundle:51347
upsert index.ios.bundle:51365
upsert index.ios.bundle:51128
_message index.ios.bundle:49290
onmessage index.ios.bundle:49189
<unknown> index.ios.bundle:11926
applyWithGuard index.ios.bundle:880
emit index.ios.bundle:6791
jsCall index.ios.bundle:7375
_callFunction index.ios.bundle:7641
<unknown> index.ios.bundle:7670
<unknown> index.ios.bundle:7664
perform index.ios.bundle:6197
batchedUpdates index.ios.bundle:13917
batchedUpdates index.ios.bundle:4740
<unknown> index.ios.bundle:7663
applyWithErrorReporter index.ios.bundle:7410
guardReturn index.ios.bundle:7432
processBatch index.ios.bundle:7662
URL: http://localhost:8081/index.ios.bundle
line: 51347
message: Can't find variable: process"
I'm assuming that since this package doesn't use the native Meteor ddp
and minimongo
packages just yet, we also won't be able to use any accounts-
packages or any others that rely on DOM.
Is this correct? Are DOM polyfills the only thing blocking developers from using the client-side parts of Meteor's packages with react-native?
I am currently using Meteor, Famous, and phonegap, and the biggest advantage is being able to push updates to our app without going through the App Store approval process.
I am currently contemplating switching to react native. My question is if there is any way to edit react native code outside of the Xcode project, so you could essentially update the native app without going through the App Store?
Would it be a problem?
How would one go about checking for connection status in this framework? In the ideal case, I would be looking for a Meteor-style reactive variable that says whether the DDP connection is currently open and working or not. I want to use it to automatically reconnect after the app is reopened the phone awakes from 'sleep mode'.
On a similar note, I would also want the same for finding out whether the user is logged in. Something like Meteor.user()
...
Would this be difficult? Tips are very welcome.
Hi there,
sorry, I meant migration.
Is it really still neccessary for react native to add reactivity this way and not with mixins and getMeteorData() since the official support of react by MDG?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.