Bloc / Messenger

This is a small app to message using the Bloc Api
8 stars 3 forks source link

Remove Settings component on Login view #17

Open iamkevinlowe opened 8 years ago

iamkevinlowe commented 8 years ago

Settings button, leading to LOG OUT is shown on Login view.

screen shot 2016-04-03 at 10 52 31 am
dpaola2 commented 8 years ago

I investigated this a bit, posting here for posterity.

The reason this occurs is because the index.ios.js component includes the Settings component from within its rendered NavigatorIOS component (as a property).

One solution is to extract a separate NavigatorIOS component for the logged-out view vs. the logged-in view. That seems like overkill to me.

Another solution would be to simply include the Settings component and render different contents depending on whether or not the user is logged in.