I'm using the following --
"react-native": "0.29.1",
"react-native-meteor": "^1.0.0-rc14",
"react-native-router-flux": "^3.31.1"
My starting point is a pretty simple, when the app first loads, connect; if there's no Meteor.user(), goto 'login' scene, otherwise goto 'home'.
Then from the 'login' scene, there's the call to Meteor.loginWithPassword. If/when succeeded, hit 'Actions.home()'.
The problem I have is, once the user successfully logged in -- validated by logging 'Meteor.user()' to console, and then the router tries to go Actions.home(), somewhere in between Meteor.user() becomes 'null' again.
Hey there,
I'm using the following -- "react-native": "0.29.1", "react-native-meteor": "^1.0.0-rc14", "react-native-router-flux": "^3.31.1"
My starting point is a pretty simple, when the app first loads, connect; if there's no Meteor.user(), goto 'login' scene, otherwise goto 'home'.
Then from the 'login' scene, there's the call to Meteor.loginWithPassword. If/when succeeded, hit 'Actions.home()'.
The problem I have is, once the user successfully logged in -- validated by logging 'Meteor.user()' to console, and then the router tries to go Actions.home(), somewhere in between Meteor.user() becomes 'null' again.
Thoughts?
thanks, --may
Code -- (js/index.js)
(fragment from login.js)
Console log --