-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
|
||
export const Typo = ({ | ||
variant = 'body-big', | ||
color = TextColors.darkText, | ||
children, | ||
style, |
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.
Are you sure that adding custom styling to Typo
component is a good practice? I would have assumed that we should keep it clean from custom behaviour since it was predefined in the designs and all of the additional styling should be done around it using <View>
components.
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.
<Typo>
is just a wrapper around react's <Text>
component that adds font styles. I think we should be able to add positioning etc just like in <Text>
component. It would be easier that way and it won't break anything. I agree that more complicated components should be styled by parent.
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.
Sg.
<View style={styles.content}> | ||
<Image | ||
style={styles.logo} | ||
source={require('../../assets/images/Logo.png')} |
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.
Mby it's time for an @assets
alias, wdyt?
The rejoin button doesn't work on Android. It's caused by react navigation mounting Preview screen when navigating from Leave screen to Room screen. They're working on fixing that.
For now we'll workaround this by conditional rendering like described here: https://reactnavigation.org/docs/auth-flow/
We'll need to do this anyway to fix the header jump problem.