Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MatteoBuffo opened this issue Sep 6, 2022 · 2 comments
Open

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

MatteoBuffo opened this issue Sep 6, 2022 · 2 comments

Comments

@MatteoBuffo
Copy link

MatteoBuffo commented Sep 6, 2022

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.

gmail_cab_onlongpress.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
Copy link

github-actions bot commented Sep 6, 2022

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

  • react-native
  • react-native-paper
  • react-native-vector-icons

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

@adityadeshmukh369
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants