react-native-meteor
Advanced tools
Comparing version 1.0.0-rc3 to 1.0.0-rc4
{ | ||
"name": "react-native-meteor", | ||
"version": "1.0.0-rc3", | ||
"version": "1.0.0-rc4", | ||
"description": "Full Meteor Client for React Native", | ||
@@ -5,0 +5,0 @@ "main": "src/Meteor.js", |
@@ -22,3 +22,4 @@ # react-native-meteor [](https://www.npmjs.org/package/react-native-meteor) [](http://badge.fury.io/js/react-native-meteor) [](https://david-dm.org/inProgress-team/react-native-meteor) | ||
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'; | ||
@@ -253,4 +254,11 @@ | ||
# Author | ||
* Théo Mathieu ([@Mokto](https://github.com/Mokto)) | ||
* From [inProgress](https://in-progress.io) | ||
 | ||
# Want to help ? | ||
Pull Requests and issues reported are welcome ! :) |
'use strict'; | ||
import React, { | ||
Component, | ||
PropTypes, | ||
View, | ||
Image, | ||
StyleSheet | ||
} from 'react-native'; | ||
import React, { Component, PropTypes } from 'react'; | ||
import { View, Image, StyleSheet } from 'react-native'; | ||
@@ -11,0 +6,0 @@ |
'use strict'; | ||
import React, { | ||
Component, | ||
PropTypes, | ||
ListView | ||
} from 'react-native'; | ||
import React, { Component, PropTypes } from 'react'; | ||
import { ListView } from 'react-native'; | ||
@@ -9,0 +6,0 @@ |
'use strict'; | ||
import React, { | ||
Component, | ||
PropTypes, | ||
ListView | ||
} from 'react-native'; | ||
import React, { Component, PropTypes } from 'react'; | ||
import { ListView } from 'react-native'; | ||
import Data from '../Data'; | ||
@@ -11,0 +7,0 @@ |
@@ -68,2 +68,12 @@ import { AsyncStorage } from 'react-native'; | ||
}, | ||
_login(user, callback) { | ||
this._startLoggingIn(); | ||
this.call("login", user, (err, result)=>{ | ||
this._endLoggingIn(); | ||
this._handleLoginCallback(err, result); | ||
typeof callback == 'function' && callback(err); | ||
}); | ||
}, | ||
_startLoggingIn() { | ||
@@ -70,0 +80,0 @@ this._isLoggingIn = true; |
54144
263
1296