Page MenuHomePhabricator

[native] Make RegistrationContainer scrollable
ClosedPublic

Authored by ashoat on Apr 24 2023, 1:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 2, 3:50 PM
Unknown Object (File)
Sat, Aug 31, 12:29 AM
Unknown Object (File)
Tue, Aug 27, 9:43 AM
Unknown Object (File)
Tue, Aug 27, 8:12 AM
Unknown Object (File)
Tue, Aug 27, 2:30 AM
Unknown Object (File)
Mon, Aug 26, 10:58 PM
Unknown Object (File)
Jul 29 2024, 7:41 AM
Unknown Object (File)
Jul 29 2024, 7:41 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
Lint Not Applicable
Unit
Tests Not Applicable

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