Fork me on GitHub
#cljsrn
<
2016-07-31
>
pvinis12:07:32

im trying to add cljs-axaj on a re-natal project

pvinis12:07:45

but i cant seem to be able to do it..

pvinis12:07:04

i added it in the project.clj file

pvinis12:07:13

and required it, but i get errors

pesterhazy12:07:15

what kind of error?

pvinis14:07:59

thet goog.ajax or something could not be fiund

pvinis14:07:14

after a few times running, it worked..

pvinis16:07:34

is there any navigator examples?

pvinis16:07:52

i found navigatorios in luno

pvinis16:07:22

oh.. android uses navigator.. nvm 🙂

pesterhazy16:07:20

navigatorios is deprecated

pvinis16:07:50

really? i didnt see it on the react native site

pesterhazy16:07:31

You're right, it doesn't seem like it has been officially deprecated.

pesterhazy16:07:50

However, people encourage you to use Navigator instead, as it's portable between ios and android.

pesterhazy16:07:03

The whole navigator situation is a bit of a mess.

pvinis16:07:46

alright. i will try with navigator

pvinis17:07:44

@pesterhazy: any idea how to use navigationbar?

pvinis17:07:56

(def navigation-bar (r/adapt-react-class (.-NavigationBar (.-Navigator ReactNative)))) like this?

pvinis17:07:31

and then :navigationBar [navigation-bar]?

pesterhazy18:07:49

haven't used the stock one

pesterhazy18:07:09

my custom one is used like so: :navigation-bar (r/as-element [navigation-bar])

pvinis18:07:35

but is the first one, a correct way to declare it?

pesterhazy18:07:02

probably not 🙂

pesterhazy18:07:27

[..] gives you a persistent vector, which react-native won't understand

pesterhazy18:07:52

you need to turn it into a react element

pvinis18:07:04

this i mean (def navigation-bar (r/adapt-react-class (.-NavigationBar (.-Navigator ReactNative))))

pvinis18:07:19

not having examples for cljsrn sucks big time.. 😞

pesterhazy18:07:53

yup that looks about right

pesterhazy18:07:20

(if it's React.Navigator.NavigatorBar in javascript)

pvinis18:07:26

i will keep randomly trying stuff