Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 465 Bytes

File metadata and controls

21 lines (16 loc) · 465 Bytes

react-native-app-helpers/BottomTabBarProps

Props to be given to bottom tab bar components.

Usage

import type { BottomTabBarProps } from "react-native-app-helpers";

type ExampleTab = "Example Tab";

const example: BottomTabBarProps<ExampleTab> = {
  tab: "Example Tab"
  setTab=(to: ExampleTab): void {
    console.log(to);
  }
  resetActiveTab(): void {
    alert(`The active tab should now reset to its "home" route.`);
  }
};