Skip to content
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

native: reduce space within/between chat messages, fix keyboard offset in thread view #3606

Conversation

patosullivan
Copy link
Member

Fixes TLON-2055
Fixes TLON-2073

packages/ui/src/components/MessageInput/index.tsx Outdated Show resolved Hide resolved
@@ -96,7 +96,9 @@ export function PostScreenView({
<KeyboardAvoidingView
//TODO: Standardize this component, account for tab bar in a better way
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
// keyboardVerticalOffset={70}
keyboardVerticalOffset={
Platform.OS === 'ios' ? -bottom : DEFAULT_MESSAGE_INPUT_HEIGHT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to extract this wrapper component and use across multiple screens? I'm guessing we have similar in other places?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked for that, afaict this is the only place with this exact offset.

Copy link
Member

@jamesacklin jamesacklin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much denser. We'll refine more later but looks good to me!

@patosullivan patosullivan force-pushed the po/tlon-2055-tlon-2073-fix-message-spacing-and-keyboard-offsets branch from 390a68a to e0d124e Compare June 12, 2024 16:02
…d the thread/postscreen view, add new shared keyboardavoidingview component
@patosullivan patosullivan merged commit 0f30c19 into develop Jun 12, 2024
1 check passed
@patosullivan patosullivan deleted the po/tlon-2055-tlon-2073-fix-message-spacing-and-keyboard-offsets branch June 12, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants