HomePhabricator
Diffusion Comm 74995df61c39

[native] Fix scrolling in screen inside StackNavigator on Android

Description

[native] Fix scrolling in screen inside StackNavigator on Android

Summary:
This fixes ENG-2845, which I introduced in D6331.

It looks like gestureEnabled breaks scrolling on Android. I found a ton of GitHub issues discussing this, and the solution in all of them was to use FlatList from react-native-gesture-handler.

In this diff I went through every FlatList or ScrollView used in a StackNavigator where we have introduced gestureEnabled in D6331 (Chat and Profile), and I switched them to use FlatList from react-native-gesture-handler.

Test Plan:

  1. First, I ran git grep ScrollView and git grep FlatList in native/chat and native/profile to try to find any examples of cases that needed to be changed
  2. I deployed the app to a physical Android device to verify that scrolling still worked for all of the interfaces I fixed up

Reviewers: max, inka, tomek, bartek, przemek, kamil

Reviewed By: tomek

Subscribers: atul

Differential Revision: https://phab.comm.dev/D6417

Details

Provenance
ashoatAuthored on Jan 27 2023, 8:38 AM
Reviewer
tomek
Differential Revision
D6417: [native] Fix scrolling in screen inside StackNavigator on Android
Parents
rCOMM1201191214c9: Remove react-native-firebase dependency from the project
Branches
Unknown
Tags
Unknown