Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

[MV-345] Add Leave room screen #75

Merged
merged 6 commits into from
Mar 30, 2023
Merged

[MV-345] Add Leave room screen #75

merged 6 commits into from
Mar 30, 2023

Conversation

graszka22
Copy link
Collaborator

@graszka22 graszka22 commented Mar 29, 2023

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.

@graszka22 graszka22 marked this pull request as ready for review March 30, 2023 10:10
@graszka22 graszka22 changed the title Add Leave room screen [MV-345] Add Leave room screen Mar 30, 2023

export const Typo = ({
variant = 'body-big',
color = TextColors.darkText,
children,
style,
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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')}
Copy link
Contributor

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?

@graszka22 graszka22 merged commit 6a42122 into master Mar 30, 2023
@graszka22 graszka22 deleted the graszka22/leave-screen branch March 30, 2023 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants