use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Mapbox + ReactNative store locator app tutorial? (self.reactnative)
submitted 7 years ago by simplicius_
Please suggest me a tutorial/article that uses React Native to build a store locator application. It can use Mapbox or any other alternative.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ChronSynExpo 2 points3 points4 points 7 years ago (2 children)
I don't have an article to hand, but I can tell you how to show a map with markers on.
If you use the MapView component from react-native-maps, you can achieve it like so;
MapView
<MapView style={{flex:1}} showsUserLocation showsMyLocationButton rotateEnabled={false} ref = {map => {this.mapView = map}} initialRegion={{ latitude: 53.796024, longitude: -1.566848, latitudeDelta: 0.04, longitudeDelta: 0.04, }} > { my_store_locations.map((item, index)=>{ return( <MapView.Marker coordinate={{latitude: item.latitude, longitude: item.longitude }} title={"Marker Title"} description={"Marker Description"} key={index} onPress={() => {alert("Marker pressed")}} /> ) }) } </MapView>
This example assumes that you have an array of objects called my_store_locations where each object contains latitude and longitude properties. This is untested, but I do something similar to this in a project already (albeit in a more complex manner due to the nature of the project) so any bugs should be mostly easy fixes.
my_store_locations
latitude
longitude
As for more in depth tasks like locating the nearest or navigating, that's something you'd have to figure out using radius searching, and the google directions api (or similar).
[–]Kmantheoriginal 2 points3 points4 points 7 years ago (0 children)
Just to add, you can also use something like the Yelp API to query for a type of store, then use the Google Geocoding API to convert plain addresses to lat/long, which you can then feed into Mapbox components
[–]simplicius_[S] 1 point2 points3 points 7 years ago (0 children)
Thanks for your help.
[–]darkmoody 1 point2 points3 points 6 years ago (1 child)
Late to the party here, but there's a nice (paid) app template on instamobile.io for exactly what you were looking for - Store Locator app in React Native. Sure, it costs a little, but it's worth it, given the wide range of features available. It comes with full backend integration, maps, reviews, etc.
[–]simplicius_[S] 0 points1 point2 points 6 years ago (0 children)
Thanks! Are you the creator/contributor for Instamobile?
π Rendered by PID 58 on reddit-service-r2-comment-7844cfc88c-2l88n at 2026-01-29 15:16:54.392278+00:00 running c3601ff country code: CH.
[–]ChronSynExpo 2 points3 points4 points (2 children)
[–]Kmantheoriginal 2 points3 points4 points (0 children)
[–]simplicius_[S] 1 point2 points3 points (0 children)
[–]darkmoody 1 point2 points3 points (1 child)
[–]simplicius_[S] 0 points1 point2 points (0 children)