Skip to content

Navbar with Image #223

@ehdwns980416

Description

@ehdwns980416

I want to put my app logo in the <Navbar/> without the title.
I tried to put in left prop, but it's not work. How can I put image in the <Navbar/>?

This is the code I tried.

import { Image } from 'react-native';
import { NavBar } from 'galio-framework';
...
const leftComponent = () => {
    return (
        <Image
            resizeMode="contain"
            source={require("../../images/logo-navbar.png")}
        />
    );
}
...
<NavBar
    title=""
    style={styles.navbar}
    left={leftComponent}
    leftStyle={{
        width: 270,
        height: 80
    }}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions