Skip to content

Commit

Permalink
Updated readme + 1.0.0-rc10
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed Jun 12, 2016
1 parent bcc70eb commit 59b9379
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Meteor-like methods for React Native.
- [Meteor.Accounts](#meteoraccounts)
- [FSCollection](#fscollection)
- [Meteor.ddp](#meteorddp)
- [How To ?](#how-to-)
- [react-native-router-flux](#react-native-router-flux)
- [How To ?](#how-to-)
- [react-native-router-flux](#react-native-router-flux)
- [Author](#author)
- [Want to help ?](#want-to-help-)

Expand Down Expand Up @@ -308,15 +308,15 @@ Once connected to the ddp server, you can access every method available in [ddp.
* Meteor.ddp.on('changed')
* ...

## How To ?
# How To ?

### react-native-router-flux
## react-native-router-flux

* You can use Switch with createContainer. Example :
```javascript
componentWillMount() {
this.scenes = Actions.create(
<Scene key="root" component={createContainer(this.getMeteorData, Switch)} selector={this.selector} tabs={true}>
<Scene key="root" component={createContainer(this.composer, Switch)} selector={this.selector} tabs={true}>
<Scene key="loading" hideNavBar={true} component={Loading} />
<Scene key="login" hideNavBar={true}>
<Scene key="loginbis" component={Login} />
Expand All @@ -330,7 +330,7 @@ Once connected to the ddp server, you can access every method available in [ddp.
</Scene>
);
}
getMeteorData() {
composer() {
return {
connected: Meteor.status().connected,
user: Meteor.user()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-meteor",
"version": "1.0.0-rc9",
"version": "1.0.0-rc10",
"description": "Full Meteor Client for React Native",
"main": "src/Meteor.js",
"scripts": {
Expand Down

0 comments on commit 59b9379

Please sign in to comment.