Fork me on GitHub
#cljsrn
<
2019-02-12
>
attentive04:02:31

@haiyuan.vinurs Something like this works (you need to have a layout in your app that loads the splash) https://gist.github.com/attentive/a6892245133403f02f8859c7db57c022

vinurs04:02:16

@attentive thanks, i've solved it

attentive04:02:56

Cool, good to know

vinurs04:02:11

(def react-native-splash-screen (js/require "react-native-splash-screen")) (def SplashScreen (aget react-native-splash-screen "default")) (def hideSplashScreen (.-hide SplashScreen)) before, i don't know shoud get "default" from the library

vinurs04:02:13

i just use (.-hide react-native-splash-screen), so can not hide the splash screen

5
attentive05:02:12

@haiyuan.vinurs If you have a look at my gist, you can see the use of the oops.core/oget and oops.core/ocall macros for native JavaScript interop. These protect you when you use advanced compilation, would highly recommend https://github.com/binaryage/cljs-oops

wahid16:02:09

I want to know how to use react-navigation 3 with re-natal. Is there any example or help?

jimberlage21:02:21

Thought experiment - instead of trying to make a figwheel bridge, how hard would it be to have figwheel hook into facebook’s metro bundler itself? Metro supports swappable transformers for your javascript: https://facebook.github.io/metro/docs/en/concepts

jimberlage21:02:12

@bhauman especially curious to hear your thoughts on this