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

How to return current location? #65

Closed
wafisher opened this issue Oct 29, 2016 · 2 comments
Closed

How to return current location? #65

wafisher opened this issue Oct 29, 2016 · 2 comments

Comments

@wafisher
Copy link

wafisher commented Oct 29, 2016

Given the lack of explicit documentation, I would expect that when a user clicks on the Current Location item, the module would return, calling this.props.onPress, just like it does with predefined and autocomplete'd rows. Instead what happens is that it refreshes the list with new data.

I don't get this. Isn't the user clicking on Current Location to use that as the "place"? More to the point, how can I get the module to do what I want — should I just fork the project and use my own version or perhaps, if you like this functionality, I could write it in a way suitable to be incorporated.

@mayask
Copy link
Collaborator

mayask commented Oct 31, 2016

Hi @wafisher

You can set currentLocation={false} and add YOUR current location to the list of predefinedPlaces prop.

@wafisher
Copy link
Author

wafisher commented Nov 3, 2016

I ended up forking the module and modifying it. Thank you.

@wafisher wafisher closed this as completed Nov 3, 2016
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

No branches or pull requests

2 participants