This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-04
Channels
- # beginners (8)
- # boot (20)
- # cider (8)
- # cljs-dev (263)
- # cljsjs (8)
- # cljsrn (20)
- # clojure (151)
- # clojure-argentina (1)
- # clojure-belgium (7)
- # clojure-dev (18)
- # clojure-italy (25)
- # clojure-spec (34)
- # clojure-uk (15)
- # clojurescript (89)
- # component (45)
- # core-async (27)
- # cursive (16)
- # datomic (53)
- # emacs (40)
- # figwheel (3)
- # hoplon (62)
- # jobs (1)
- # jobs-discuss (7)
- # luminus (8)
- # lumo (60)
- # off-topic (3)
- # parinfer (1)
- # precept (1)
- # protorepl (15)
- # re-frame (37)
- # reagent (7)
- # ring (3)
- # ring-swagger (73)
- # slack-help (1)
- # specter (19)
- # sql (4)
- # test-check (10)
- # uncomplicate (2)
- # unrepl (14)
- # untangled (52)
- # vim (5)
- # yada (42)
@gphilipp I've reached the point where I have to react-native bundle
myself now
did you reach any conclusion?
for testing, you need to pass --reset-cache
to react-native bundle
, otherwise it'll use the pre-computed work
I did not know that you could run a Release Build simply like this:
react-native run-ios --configuration Release
It’s all here: https://facebook.github.io/react-native/docs/running-on-device.html#3-build-app-for-release
it’s available since RN 0.39 (https://github.com/facebook/react-native/commit/ca7cbdee858e84c4a74a2d9c7be151f5cfdcfbfe)
the trouble is, I don't periodically read the entire RN docs to see if something changed 😉
--max_old_space_size=4092
seems to work for me with node 7 btw
@pesterhazy I reverted to node 7.8 from 8.1.3 but I still have the issue with the memory. It worked fine under RN 0.44 though with --max_old_space_size=4096. Which version do you use ?
0.44.2
probably that's it
yes. upgrade to RN 0.45.1 with https://www.npmjs.com/package/react-native-git-upgrade
I also noticed that it writes “ranged” version in your package.json. And this made me lose a couple hours yesterday after I had deleted the node_modules directory + npm install
. It pulled 16.0.0-alpha.13
instead of 16.0.0-alpha.12
while I was looking away, and alpha13 is incompatible with RN 0.45.1. I had to remove the leading caret on the react dep and update the package-lock.json
to make it work properly again w/ advanced compilation. I’m still investigating the failure under simple mode.
NPM fail
I think I'll just stay with 0.44 for now
A strange thing is that when I look at memory usage in the activity monitor (i’m on mac), I don’t see the node process go over 1.5 go (which is the default IIRC). Seems like --max_old_space_size
has no effect.
Does anyone have an example of using Picker
? I’m clearly missing something very basic, but I’m failing to work out how to wrap PickerItem
correctly.
This is my current attempt:
(def ReactNative (js/require "react-native"))
(def view (reagent/adapt-react-class (.-View ReactNative)))
(def text (reagent/adapt-react-class (.-Text ReactNative)))
(def picker (reagent/adapt-react-class (.-Picker ReactNative)))
; (def item (reagent/adapt-react-class (.-PickerItem ReactNative)))
Uncommenting the commented-out line results in the dreaded “Assert failed: c”. What am I missing?To answer my own question - it needs to be:
(def item (reagent/adapt-react-class (.-Item (.-Picker ReactNative))))