Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed May 25, 2016
2 parents bb9657b + 9c3ace4 commit 303c842
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The purpose of this library is :

```javascript

import { View, Text, Component } from 'react-native';
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import Meteor, { createContainer } from 'react-native-meteor';

Meteor.connect('http://192.168.X.X:3000/websocket');//do this only once
Expand Down Expand Up @@ -249,6 +250,13 @@ import { FSCollectionImagesPreloader } from 'react-native-meteor';
* [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.


# Author

* Théo Mathieu ([@Mokto](https://github.com/Mokto))
* From [inProgress](https://in-progress.io)

![inProgress](https://in-progress.io/wp-content/uploads/2016/04/LOGO-RESPONSIVE-IPG-01-copie-1.png?2a6543)

# Want to help ?

Pull Requests and issues reported are welcome ! :)
10 changes: 10 additions & 0 deletions src/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ module.exports = {
})
});
},
_login(user, callback) {
this._startLoggingIn();
this.call("login", user, (err, result)=>{
this._endLoggingIn();

this._handleLoginCallback(err, result);

typeof callback == 'function' && callback(err);
});
},
_startLoggingIn() {
this._isLoggingIn = true;
Data.notify('loggingIn');
Expand Down

0 comments on commit 303c842

Please sign in to comment.