Page MenuHomePhabricator

[native] Make RegistrationContainer scrollable
ClosedPublic

Authored by ashoat on Apr 24 2023, 1:36 PM.
Tags
None
Referenced Files
F3166318: D7593.id.diff
Thu, Nov 7, 1:29 AM
Unknown Object (File)
Wed, Nov 6, 9:11 AM
Unknown Object (File)
Fri, Oct 11, 11:50 PM
Unknown Object (File)
Fri, Oct 11, 11:50 PM
Unknown Object (File)
Fri, Oct 11, 11:50 PM
Unknown Object (File)
Fri, Oct 11, 11:50 PM
Unknown Object (File)
Fri, Oct 11, 11:40 PM
Unknown Object (File)
Sep 21 2024, 2:52 AM
Subscribers

Details

Summary

This diff does two things:

  1. Makes RegistrationContainer scrollable, so if there isn't enough space in the viewport, the content can still be fully viewable
  2. Add KeyboardAvoidingView to the RegistrationContainer, following the approach in Profile. This way when a TextInput is focused and the keyboard comes up, the ScrollView automatically adjusts so that the TextInput is still visible on screen

Depends on D7592

Test Plan

(I also tested the same thing on Android)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Had to move the KeyboardAvoidingView into the RegistrationContainer so that:

  1. It plays nice with SafeAreaView, which is introduced in D7599. The issue is that if the KeyboardAvoidingView is outside the SafeAreaView, it applies the bottom inset ABOVE the keyboard
  2. It doesn't move the RegistrationButton up. I want that button to stay below the keyboard
This revision is now accepted and ready to land.Apr 25 2023, 3:53 PM