Fork me on GitHub
#cljsrn
<
2017-04-21
>
mengu16:04:14

has anyone used react native's Navigation component?

mengu16:04:20

* Navigator

raspasov19:04:31

@mengu if you want navigation, you should probably checkout https://github.com/react-community/react-navigation

raspasov19:04:19

but I’m still skeptical, or at least it didn’t fit my needs, but I think that’s the best option at the moment…

raspasov19:04:48

the React Native built-in Navigation* components are pretty limited and you end up running into limitations pretty quickly

mengu19:04:01

what i did previously was using the state and rendering accordingly

mengu19:04:10

in my splash screen i have two buttons, sign in and sign up

mengu19:04:30

if clicked on sign in, i display sign in view and vice versa

mengu19:04:41

but did that via state and it did not actually feel right

raspasov19:04:45

right 🙂 yes it gets more complex once you want animations, transitions, etc

raspasov19:04:08

it’s actually not incorrect… the question is how do you incorporate transitions and animations

mengu19:04:20

i could not care less about transitions

mengu19:04:27

i just want my views to be rendered accordingly 😄

raspasov19:04:29

i’ve come up with my own ways of doing it but nothing I can publish atm in a presentable way

raspasov19:04:50

ok if you don’t care about transitions, I would say your way is perfectly fine 🙂

mengu19:04:47

@raspasov if i cannot get to fix that transition with navigation, i'm going back yeah

raspasov19:04:55

good luck 🙂

mengu20:04:41

@raspasov i reset my changes

mengu20:04:47

i'm gonna stick to the state 😄

mengu21:04:55

@raspasov are you using re-natal?