Type alias TabsProps

TabsProps: {
    componentProps?: ViewProps;
    items: TabItem[];
    onChange?: ((index, item) => void);
    scrollMode?: boolean;
    selectedIndex?: number;
    style?: StyleProp<ViewStyle>;
}

Props for Tabs component

Type declaration

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • items: TabItem[]

    Items to render in the tabs

  • Optional onChange?: ((index, item) => void)
      • (index, item): void
      • Callback when switcher is changed

        Parameters

        Returns void

  • Optional scrollMode?: boolean

    Indicate if scroll mode should be used (when several tabs that will not fit this should be true)

  • Optional selectedIndex?: number

    Selected index

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

Generated using TypeDoc