Fork me on GitHub
#cljsrn
<
2016-01-20
>
dvcrn07:01:10

anyone here know how to position a absolute view with full height/width

dvcrn07:01:53

sadly the react native discord channel is not helping. In general - never received an answer whenever I asked something in there (including old irc) 😞

drapanjanas07:01:51

@scttnlsn: in figwheel bridge code you can conditionally use function importScripts(url) only when it is available (when using debug in chrome). In this case chrome tries to load the source maps. But then, to make packager serve the *.map files as any normal file, I had to patch the packager. I have commented out these lines https://github.com/facebook/react-native/blob/master/packager/react-packager/src/Server/index.js#L400-L401. After this, I got source maps working when debug in chrome is enabled.

drapanjanas07:01:19

Not perfect solution but it worked, I will commit it some time later in re-natal

dvcrn07:01:07

@drapanjanas: amazing work on re-natal by the way. After all this fighting around with om, discovering re-natal was like a present from the angels

dvcrn07:01:21

found a solution with https://facebook.github.io/react-native/docs/dimensions.html#content

(def dimensions (.-Dimensions js/React))
(def window-dimensions (.get dimensions "window”))

[view {:style {:position "absolute"
               :flex 1
               :backgroundColor "rgba(0,0,0,0)"
               :top 0
               :left 0
               :width (.-width window-dimensions)
               :height (.-height window-dimensions)}}

drapanjanas07:01:33

@dvcrn: Its cool that you do some real world app with reagent and re-frame. I got some useful how-to's from you even before I started building my own app. Thanks, keep on sharing problems and solutions! :)

dvcrn08:01:51

do we already have something for clojurewest?

dvcrn08:01:06

Would love to hold a talk and meet some of you guys but absolutely no idea what I could talk about

dvcrn09:01:07

@drapanjanas: confirming that re-natal works on a real iOS device

drapanjanas10:01:54

@dvcrn cool! Thanks for evidence, I will put a note on README that it works.