callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.95k stars 2.09k forks source link

Gmail-like CAB and "select items" logic #3355

Open MatteoBuffo opened 2 years ago

MatteoBuffo commented 2 years ago

Is your feature request related to a problem? Please describe. Not quite: it's something I would like to implement in my app.

Describe the solution you'd like Please refer to the video below.

https://user-images.githubusercontent.com/56068232/188570449-05662635-1b48-457b-810f-dab4de538dfd.mp4

I would like to have a Gmail-like CAB (Contextual Action Bar) that shows up whenever the user enters the "select mode". This mode is triggered when there are no selected items and the user long presses one of the items in a list (in this case, emails). The new CAB should be different from the one that is shown when in "normal mode" (in this case, the CAB is absent when in "normal mode", and slides down without shifting the mails).

Describe alternatives you've considered I've been toying around a little in this snack, but I'm not happy with the result, especially with the "Hide appbar" transition.

Additional context The video above should be enough.

github-actions[bot] commented 2 years ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

adityadeshmukh369 commented 2 months ago

@MatteoBuffo did you implement it ? Can you share code if possible ?