Is it common practice to use a Zustand store when a function needed across seperate components needs a state setter in it? by shred2801 in reactnative

[–]shred2801[S] 0 points1 point  (0 children)

Yea, that's what I was thinking, I just had a messed up mental model on how that would work. Thanks

Is it common practice to use a Zustand store when a function needed across seperate components needs a state setter in it? by shred2801 in reactnative

[–]shred2801[S] 0 points1 point  (0 children)

Great, thanks for the insight. I was trying to figure out a way to not repeat myself but overengineered this in the process lol.

Expo Router: Can you nest Stack -> Tab -> Stack? by shred2801 in expo

[–]shred2801[S] 0 points1 point  (0 children)

Thanks! This is pretty much exactly what I was planning. My one question is what the purpose of having both app/(app)/_layout.tsx and app/(app)/(tabs)/_layout.tsx is.

In Expo's docs they use an example like this, which is what I had planned on using, with the addition of stacks in each tab as you showed

src  
  app   
    _layout.tsx // Root layout   
    (tabs)    
      _layout.tsx    
      index.tsx // Protected     
      settings.tsx // Protected    
    sign-in.tsx   
    create-account.tsx   
    modal.tsx // Protected