Preparing search index...

    Function resolveTabLabel

    • Resolves the text shown (and announced) for a bottom tab.

      tabBarLabel may be a string or a render function; only a string is usable as plain text, so anything else falls back to the route name. Single source for both the visible label and the accessibility label so the two cannot diverge.

      Parameters

      • tabBarLabel:
            | string
            | (
                (
                    props: {
                        focused: boolean;
                        color: string;
                        position: LabelPosition;
                        children: string;
                    },
                ) => ReactNode
            )
            | undefined

        The route's tabBarLabel option, if any

      • routeName: string

        Fallback used when no string label is set

      Returns string

      The label string for display and accessibility