Type alias ContentSwitcherProps

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

Props for ContentSwitcher 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: SwitcherItem[]

    Items to render in the content switcher (should try and keep under 3. Anything larger gets hard to read on mobile)

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

        Parameters

        Returns void

  • Optional selectedIndex?: number

    Selected index

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

Generated using TypeDoc