Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a list view to display all family members sorted by distance #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

DaniArnaout
Copy link

@DaniArnaout DaniArnaout commented May 31, 2017

You can get to the list view right from the map view action sheet.
This will help members easily find & communicate with each other. 🤗

list

Copy link
Member

@KrauseFx KrauseFx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DaniArnaout, thanks for the PR, I love the idea of a list, however this seems to cause a lot of duplicate code, from the mapview, which will make it very hard to maintain in the future

Database.stopListening();
}

_handleAppStateChange = appState => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks like duplicate code?

}

if (coordinatesProvided && foundExisting == -1) {
let profilePictureUrl = "https://twitter.com/" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also duplicate code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You got a solid point there!

I thought about it while I was working on the list, but I just didn't have enough time to implement a data store / manager to hold one source of truth for the app.

Another quick workaround would be just passing the users array from the map to the list then display it statically (without live updates).

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants