(.)(.) dev thoughts ...

Configure react native mac osx struggle
2015-10-12 21:10:00

So I got the mac to be able to develop every platform. Because you cannot do iOS on windows or linux, or it's problematic. It turns out Apple with it market share forced me to have one.
Anyway I am having fun with react native recently and I had some trouble with installing it I want to sum up in this post. The issues causes that, after running react example in Xcode emulator the ract-native server gives me some errors and emulator shows red blank screen.

There are exactly two issues I run into.


I had problem with to many open files - something like that.
I thought that ulimit works the same in mac, so I started digging and I found the solution here .

So it's simple
sudo launchctl limit maxfiles 64000 64000
and create file to work after restart by typing :
sudo vi /etc/launchd.conf
and then finally put there formula
limit maxfiles 64000 64000
and that was it.


I had old version of node something like 10.x and was facing this error :
const babel = require('babel-core'); SyntaxError: Use of const in strict mode.
I found similar problem here. Be sure to install newest or upgrade. Since I am using homebrew to install some of my dependencies including nodejs it was easy as shown in this url
The command is :
brew updatebrew upgrade node
So far so good and I am impressed by react native. Looking forward into it's evolution.