mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 865 forks source link

After logging in you must reload the app for the profile page to display #173

Closed andybeak closed 6 years ago

andybeak commented 6 years ago

Help us reproduce - tell us about your environment

  1. Latest version, ejected from Expo
  2. Android 5.0 USB connected
  3. Ubuntu 16.04 development environment

Steps to reproduce

  1. Run the app
  2. Login

Expected result

  1. The profile page with the personalized greeting is displayed

Actual result

  1. The login dialog box is displayed
  2. The console shows the error "Error: TypeError: Cannot read property 'map' of undefined" at Login.js 49
andybeak commented 6 years ago

Didn't mean to close, the console error is related to line 48:

.then(() => Actions.tabbar())

Changing this to .then(() => Actions.pop()) gives me the behaviour I'd expect.

I'm just a beginner but it looks like this project is following the flux documentation correctly so I think the issue is upstream.

andybeak commented 6 years ago

Closing because I think it's upstream.