Skip to content

Is there a way to force truncating the text in the nav bar?  #438

@rlau1115

Description

@rlau1115

I achieved a temporary fix by changing the source code for NavBar, adding a "numberOfLines={1}" prop, along with passing in some styling into the root scene. Is there a more elegant/permanent way to do this without changing the underlying source code (since this will get erased every time I update)?

/* NavBar.js */
...
_renderTitle(childState: NavigationState, index:number) {
        return (
            <Animated.Text
                key={childState.key}
                numberOfLines={1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions