tamagui: Buggy Dialog, AlertDialog and Sheet on Android

Current Behavior

The components I have tested are Dialog, AlertDialog and Sheet.

Dialog’s are not displaying, they act a bit weird when modal is false, at times getting into an infinite loop and making the app unresponsive.

Sheets works as expected though buttons inside Sheet seem not to work.

AlertDialog doesn’t work unless native is true.

Expected Behavior

Dialog, AlertDialog and Sheet to work as expected.

Tamagui Version

1.126.0

Platform (Web, iOS, Android)

Android

Reproduction

https://github.com/ThukuWakogi/bug-repro

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
    Memory: 1.83 GB / 7.88 GB
  Binaries:
    Node: 22.10.0 - D:\Program Files\nodejs\node.EXE
    Yarn: 4.5.0 - D:\Program Files\nodejs\yarn.CMD
    npm: 11.0.0 - D:\Program Files\nodejs\npm.CMD
    bun: 1.2.10 - ~\.bun\bin\bun.EXE
    Watchman: 20230806.083715.0 - C:\ProgramData\chocolatey\bin\watchman.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @babel/runtime: ^7.24.6 => 7.26.9
    @biomejs/biome: ^1.9.3 => 1.9.4
    @tamagui/cli: ^1.126.0 => 1.126.0
    check-dependency-version-consistency: ^4.1.0 => 4.1.1
    eslint: ^9.3.0 => 9.21.0
    husky: ^9.1.6 => 9.1.7
    prettier: ^3.3.3 => 3.5.2
    turbo: ^1.13.4 => 1.13.4
    typescript: ^5.6.2 => 5.8.2
    ultra-runner: ^3.10.5 => 3.10.5
    vitest: ^2.1.1 => 2.1.9

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 18 (6 by maintainers)

Most upvoted comments

In the latest tamagui version 1.26.1 on an Android device, both Dialog and Sheet do not work for me. Sheet exhibits weird behavior and does not even render when modal prop is passed in .

Same issue as #3367 which was closed without testing PR which was supposed to fix it.

thanks for your feedback @ThukuWakogi. Sheets component will be in another PR. We’re looking into that. Will keep you posted for that

Fixed with the latest tamagui version

@ThukuWakogi can you check again with the latest canary release

I have been following closely to see if there is any progress to this being fixed. One of the PRs that has caught my attention is #3407 by @nnphong1904. This PR has fixed the issue with dialogs not being displayed on android but Sheets is still buggy. Buttons inside of Sheets are not working as expected on android. I have tested this with v1.126.4. Currently I am still defaulting to v1.125.26.