-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
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
feat(ui): tab-view component #243
Conversation
return elements.map(this.renderChild); | ||
}; | ||
|
||
private getComponentStyle = (source: StyleType): StyleType => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move it above all render methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we need to do this in each implemented component
probably we can refactor this in future
4b3fcca
to
0b3cc68
Compare
style={{ flex: 1 }} | ||
key={index} | ||
activeOpacity={1.0} | ||
onPress={() => this.onChildPress(index)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove lambda here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a need to handle which tab was pressed
Passing index
directly to Tab
component and wrapping it to Touchable
inside it's own implementation could help, but I don't think tab should know it's index
eb75072
to
9341d0f
Compare
c1892a4
to
73bc434
Compare
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
Implements following components: