Skip to content

Commit

Permalink
works
Browse files Browse the repository at this point in the history
  • Loading branch information
HaveF committed Jan 25, 2017
1 parent f8feacf commit 14a713e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# WIP
try set "remotedev-server" in local


# example for remotedev

1. clone the repo
2. cd to dir, and use yarn to install
3. react-native upgrade, donot replace .babelrc
4. rnpm link
5. react-native run-ios


5. yarn run remotedev
6. react-native run-ios

--------

Expand Down
2 changes: 1 addition & 1 deletion app/stores/counter_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { observable, action, runInAction } from 'mobx'
import remotedev from 'mobx-remotedev'
import api from './api'

@remotedev({ remote: false, onlyActions: true, global: true, hostname: 'localhost', port: 8000 })
@remotedev({ remote: true, onlyActions: true, global: true, hostname: 'localhost', port: 8000 })
class CounterStore {
@observable counter = 0;
@observable remoteCounter = 0;
Expand Down

0 comments on commit 14a713e

Please sign in to comment.