This PR removes the KeyboardTrackingView used to track the keyboard on the post list for iOS as well as adds functionality to change the adjust behavior on Android.
With the two above taken care of, now our app will no longer move the contents of the screen (aka post list) on both Android and iOS when giving focus to the draft input. Instead we are adding a View below the draft input that will animate its height to the keyboard height, moving the contents of the screen upwards (this works fine even when using a hardware keyboard).
Additionally, we have the ability to set a custom component where the keyboard is displayed to accommodate for things like the emoji picker and in the future if we want the image picker and others.
Summary
This PR removes the KeyboardTrackingView used to track the keyboard on the post list for iOS as well as adds functionality to change the adjust behavior on Android.
With the two above taken care of, now our app will no longer move the contents of the screen (aka post list) on both Android and iOS when giving focus to the draft input. Instead we are adding a View below the draft input that will animate its height to the keyboard height, moving the contents of the screen upwards (this works fine even when using a hardware keyboard).
Additionally, we have the ability to set a custom component where the keyboard is displayed to accommodate for things like the emoji picker and in the future if we want the image picker and others.
Ticket Link
https://mattermost.atlassian.net/browse/MM-61739 https://mattermost.atlassian.net/browse/MM-61551 https://mattermost.atlassian.net/browse/MM-61917
Checklist
Device Information
This PR was tested on: iPhone 14 iPhone SE iPhone 16 Pro iPad 11 iPad 13 Max Emulators for Android 14 and 15 including foldable devices
Release Note