We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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/>?
<Navbar/>
left
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 }} />
The text was updated successfully, but these errors were encountered:
I find the solution, and I want you to add function type on the left prop and right one. Those are just node type, so I couldn't put function in them.
function
right
node
I can put <Image/> with below code, but I need function type to look my code better.
<Image/>
<NavBar flex title="" style={styles.navbar} left={ <Image resizeMode="contain" source={require("../../images/logo-navbar.png")} style={{ width: 270, height: 80, }} /> } />
NavBar - Documentation @ galio
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: