galio-org / docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation for Galio
Home Page: https://galio.io/docs
License: MIT License
Documentation for Galio
Home Page: https://galio.io/docs
License: MIT License
We should be able to increase touchable area of left navbar icon.
When using navbar component of galio, user has to click exactly on top of go back or open drawer icon. however; this really reduces the user experience.
this is related to galio-org/galio#94
Being able to add hit slop to left navbar icon
With the help of a few lines of code; users of galio may add hitSlop to left navbar icon. example code is given below.
What about right icon?
Since right can be rendered in a whole component, I don't think we need to specify rightHitSlop.
example code:
renderRight = () => {
const { white, title, navigation } = this.props;
const { routeName } = navigation.state;
if (title === "Title") {
return [
//some things
];
}
}
<NavBar
back={back}
title={title}
style={styles.navbar}
transparent={transparent}
right={this.renderRight()}
leftHitSlop={{ top: 30, bottom: 30, left: 30, right: 30 }} // important part!!!
leftStyle={{ paddingVertical: -12, flex: 0.3 }}
leftIconColor={white ? theme.COLORS.WHITE : theme.COLORS.ICON}
titleStyle={[
styles.title,
{ color: theme.COLORS[white ? "WHITE" : "ICON"] }
]}
onLeftPress={this.handleLeftPress}
/>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.