This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-15
Channels
- # beginners (15)
- # boot (4)
- # cider (1)
- # cljsrn (16)
- # clojars (1)
- # clojure (92)
- # clojure-india (3)
- # clojure-russia (27)
- # clojure-spec (9)
- # clojure-uk (5)
- # clojurescript (73)
- # cursive (28)
- # datascript (10)
- # emacs (1)
- # events (5)
- # hoplon (1)
- # instaparse (7)
- # juxt (2)
- # klipse (13)
- # lumo (17)
- # off-topic (166)
- # onyx (4)
- # protorepl (5)
- # re-frame (5)
- # reagent (13)
- # rum (26)
- # untangled (17)
- # yada (3)
I'm trying out cljsrn/re-natal. I created a base project and got it working. However, I'd like to add https://github.com/airbnb/react-native-maps and I'm really lost how to make it work.
I added it to index.android.js
(developing for android first), and I tried this inside .../android/core.js
:
(def map-box (js/require "react-native-mapbox-gl/MapView"))
I know I'm missing some things, but I don't see how to add custom components. I followed https://github.com/drapanjanas/re-natal#using-external-react-native-components , but it's a bit confusing, or well, it doesn't work: Unable to resolve module react-native-mapbox-gl/Mabpox from ...
$ ls node_modules/react-native* -alhd
drwxr-xr-x 13 kurt-personal kurt-personal 326 Apr 5 21:32 node_modules/react-native
drwxr-xr-x 5 kurt-personal kurt-personal 267 Apr 5 21:32 node_modules/react-native-mapbox-gl
So, the module is there... although the error message seems to tell otherwise?I tried the steps proposed in the message and in https://github.com/facebook/react-native/issues/4968 - doesn't solve anything
@kurt-o-sys try just (js/require "react-native-maps")
well... thanks... I was actually using https://www.npmjs.com/package/react-native-mapbox-gl - don't know which map implementation to use actually, was just a quick test. I'll try again, thx.
yeah... just discovered that one 😛. What about this one, seems to be new: https://github.com/uber/react-map-gl
Looks nice.
Technically so is Google maps at some point but if you don't need customization I would recommend the basic one
yeah. right. It's just to play a little bit 🙂
thx 🙂
Actually, I don't really understand why we need to provide an google API key to react-native-mapbox-gl . mapboxgl.js doesn't need it. So why is it actually necessary? (doesn't matter, I just wonder)