如何在React Native的材料顶部标签导航器中隐藏TabBar

时间:2020-09-18 13:52:02

标签: react-native navigation react-navigation react-navigation-v5

基本上我想做从家庭到聊天的类似Instgram

Chat

我实现了从首页到聊天页面的转换。但就我而言,我的顶部栏固定在顶部。

My version

我的导航。

Fixpoint but_last n : Euc (S n) -> Euc n :=
  match n with
  | 0   => fun _ => []
  | S n => fun v => head _ v ::: but_last n (tail _ v)
  end.

Fixpoint snoc n (v : Euc n) (x : R) : Euc (S n) :=
  match v with
  | [] => [x]
  | y ::: v => y ::: snoc _ v x
  end.

Fixpoint lastk k : forall n, Euc n -> Euc (Nat.min k n) :=
  match k with
  | 0 => fun _ _ => []
  | S k => fun n =>
    match n return Euc n -> Euc (Nat.min (S k) n) with
    | 0 => fun _ => []
    | S n => fun v =>
      snoc _ (lastk k _ (but_last _ v)) (last _ v)
    end
  end.

0 个答案:

没有答案