Closed myrjola closed 7 years ago
Working on this now for half an hour.
I got the marker showing.
Next step is to fetch the JSON data and render the markers with it. Maybe this guide would be of some help http://mediatemple.net/blog/tips/loading-and-using-external-data-in-react/. But it seems that the big boys don't want you to fetch the data in the presentation components http://disq.us/p/16z1pk2.
I also think that we should create our marker as a React Component to make the code cleaner.
The next step is to perform the HTTP GET from beersunderthirty.org. I think I'm going to do it according to Redux's async guide http://redux.js.org/docs/advanced/AsyncActions.html
You can fetch the listings by HTTP GETing http://beersunderthirty.org/places/places.json. The output looks something like this:
I think this is a good place to start on rendering markers to the map: https://github.com/airbnb/react-native-maps#rendering-a-list-of-markers-on-a-map.