react-native-meteor
Advanced tools
Comparing version 1.0.0-beta1 to 1.0.0-beta2
@@ -18,7 +18,7 @@ # Installing decorators | ||
Looking for your help. The RN 0.20.0 might be working, please let me know ;) | ||
Looking for your help. The RN 0.20.0 solution might be working, please let me know ;) | ||
## With RN <0.16.0 (Babel 5) | ||
Use a .babecrc file at the root of your projet that contains : | ||
Use a .babelrc file at the root of your projet that contains : | ||
@@ -25,0 +25,0 @@ ```json |
{ | ||
"name": "react-native-meteor", | ||
"version": "1.0.0-beta1", | ||
"version": "1.0.0-beta2", | ||
"description": "DDP React-native Client", | ||
@@ -32,4 +32,5 @@ "main": "src/Meteor.js", | ||
"minimongo-cache": "0.0.48", | ||
"react-mixin": "^3.0.3", | ||
"trackr": "^2.0.2" | ||
} | ||
} |
@@ -22,3 +22,3 @@ [](https://badge.fury.io/gh/inProgress-team%2Freact-native-meteor) | ||
* be fully compatible with react-native and help react-native developers. | ||
* **Use the EXACT SAME METHODS as [Meteor documentation](http://docs.meteor.com/) used with React.** | ||
* **to match with [Meteor documentation](http://docs.meteor.com/) used with React.** | ||
@@ -36,4 +36,3 @@ ## Install | ||
import { View, Text, Component } from 'react-native'; | ||
import Meteor, { MeteorMixin } from 'react-native-meteor'; | ||
import reactMixin from 'react-mixin'; | ||
import Meteor, { connectMeteor } from 'react-native-meteor'; | ||
@@ -47,3 +46,3 @@ /* | ||
} | ||
reactMixin(Todos.prototype, MeteorMixin); | ||
connectMeteor(Todos); | ||
export default Todos; | ||
@@ -53,3 +52,3 @@ | ||
@reactMixin.decorate(MeteorMixin) | ||
@connectMeteor | ||
export default class App extends Component { | ||
@@ -118,3 +117,3 @@ componentWillMount() { | ||
* [Meteor.call](http://docs.meteor.com/#/full/meteor_call) | ||
* [Meteor.loginWithPassword](http://docs.meteor.com/#/full/meteor_loginwithpassword) (Please note that user signin is persisted - like in Meteor Web applications - thanks to React Native AsyncStorage.) | ||
* [Meteor.loginWithPassword](http://docs.meteor.com/#/full/meteor_loginwithpassword) (Please note that user is auto-resigned in - like in Meteor Web applications - thanks to React Native AsyncStorage.) | ||
* [Meteor.logout](http://docs.meteor.com/#/full/meteor_logout) |
@@ -10,3 +10,5 @@ import reactMixin from 'react-mixin'; | ||
module.exports = { | ||
MeteorMixin: Mixin, | ||
connectMeteor(reactClass) { | ||
return reactMixin.onClass(reactClass, Mixin); | ||
}, | ||
collection(name) { | ||
@@ -13,0 +15,0 @@ return { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16730
325
0
5
115
+ Addedreact-mixin@^3.0.3
+ Addedobject-assign@4.1.1(transitive)
+ Addedreact-mixin@3.1.1(transitive)
+ Addedsmart-mixin@2.0.0(transitive)