Coder Social home page Coder Social logo

Open dropdown menu on long press about zeego HOT 6 CLOSED

arcln avatar arcln commented on August 14, 2024
Open dropdown menu on long press

from zeego.

Comments (6)

nandorojo avatar nandorojo commented on August 14, 2024 1

Just released 1.5.0 which adds this feature. Can you try it and let me know if it works? I didn't have time to test it but I think it should.

<DropdownMenu.Trigger action="longPress">
  <Text>Open</Text>
</DropdownMenu.Trigger>

from zeego.

uyasarkocal avatar uyasarkocal commented on August 14, 2024 1

This feature does not work in the reversed scenario, which is my case:

<ContextMenu.Trigger action="press">
    <Text>Open</Text>
</ContextMenu.Trigger>

Used libraries:

"zeego": "^1.6.2"
"expo-dev-client": "~2.4.6"
"expo": "^49.0.0"

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024 1

Thanks for flagging that, I would accept a PR with a fix.

from zeego.

nandorojo avatar nandorojo commented on August 14, 2024

Is the context menu what you want perhaps? That opens on long press.

from zeego.

arcln avatar arcln commented on August 14, 2024

On Android context menu does the job, on iOS context menu will blur the whole screen + show a preview but I have nothing to preview. Also, context menu on iOS have a delay (#33) which is annoying.

I'd like to use dropdown menu as it have the exact behaviour I want on iOS.

from zeego.

arcln avatar arcln commented on August 14, 2024

Just tried it and it works perfectly. Thank you for the blazing fast support!

from zeego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.