You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mike Fikes edited this page Apr 9, 2018
·
10 revisions
Even though code size may not be a huge issue with mobile apps, advanced compilation can reduce launch latency, especially on older devices. For example, timings on an iPad 2 for a ClojureScript + React Native app compiled with :simple result in 3-second launch latency, while :advanced reduces this to 2 seconds.
When creating production builds, use of :advanced may help with code size (thus making it unnecessary to configure the heap size for the React Native packager).
Simply including react-native-externs as a dependency can cover React Native itself, but you need to be sure to deal with the name shortening that may occur for other 3rd party components you might be using.
Tips suggested by @jeaye (in Slack) to avoid the externs problem of Clojurescript.