Skip to content

Commit

Permalink
Updated readme + 1.0.0-beta20
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed Mar 24, 2016
1 parent 48125bc commit 51a9970
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# react-native-meteor

Meteor-like methods for React Native. **Currently in v1.0.0-beta19** ! For old docs, see [v0.6.2 documentation](https://github.com/inProgress-team/react-native-meteor/tree/0.6.2) (classic ddp interface).
Meteor-like methods for React Native. **Currently in v1.0.0-beta20** ! For old docs, see [v0.6.2 documentation](https://github.com/inProgress-team/react-native-meteor/tree/0.6.2) (classic ddp interface).

## What is it for ?

Expand Down Expand Up @@ -131,6 +131,21 @@ Same as [ListView](https://facebook.github.io/react-native/docs/listview.html) C
/>
```

# MeteorComplexListView Component

Same as [ListView](https://facebook.github.io/react-native/docs/listview.html) Component but does not need dataSource and accepts one argument. You may need it if you make complex requests combining multiples collections.

- `elements` **function** *required* : a reactive function which returns an array of elements.

### Example usage

```javascript
<MeteorComplexListView
elements={()=>{return Meteor.collection('todos').find()}}
renderRow={this.renderItem}
/>
```

# API

## Meteor DDP connection
Expand Down Expand Up @@ -172,12 +187,10 @@ Once connected to the ddp server, you can access every method available in [ddp.
* Meteor.ddp.on('changed')
* ...

# TODO
## react-native-router-flux

- [X] [Helper for Meteor-CollectionFS](https://github.com/inProgress-team/react-native-meteor/issues/18)
- [ ] [Accounts Methods 2/4](https://github.com/inProgress-team/react-native-meteor/issues/30)
- [ ] [Meteor user methods 1/2](https://github.com/inProgress-team/react-native-meteor/issues/31)
- [X] [Update method](https://github.com/inProgress-team/react-native-meteor/issues/24)
- [X] [When disconnected, minimongo insert is pushing data to view but not send to server when reconnecting.](https://github.com/inProgress-team/react-native-meteor/issues/29)
* [Github repository](https://github.com/inProgress-team/react-native-meteor-router-flux)
* npm i --save react-native-meteor-router-flux@latest
* [Custom scene renderer](https://github.com/aksonov/react-native-router-flux#switch-new-feature) which allows to select tab scene to show depending from app state. It could be useful for authentication, restricted scenes, etc.

Pull Requests are welcome ! :)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-meteor",
"version": "1.0.0-beta19",
"description": "DDP React-native Client",
"version": "1.0.0-beta20",
"description": "Full Meteor Client for React Native",
"main": "src/Meteor.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 51a9970

Please sign in to comment.