Skip to content

Multiple pop-ups of the toast component can cause frame drops and lag #369

@forget-plus

Description

@forget-plus

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

This issue is particularly evident on Android devices
toast.show({label:"test"})
The frame rate of the UI will drop drastically when called multiple times

Version information: expo-sdk:55 hero-native:1.0.1

Library version

55

Environment info

System:
  OS: macOS 26.4
  CPU: (10) arm64 Apple M2 Pro
  Memory: 116.75 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.4.1
    path: /Users/haishengfan/.nvm/versions/node/v24.4.1/bin/node
  Yarn:
    version: 1.22.22
    path: /Users/haishengfan/.nvm/versions/node/v24.4.1/bin/yarn
  npm:
    version: 11.4.2
    path: /Users/haishengfan/.nvm/versions/node/v24.4.1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/haishengfan/.gem/ruby/3.0.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.4
      - iOS 26.4
      - macOS 26.4
      - tvOS 26.4
      - visionOS 26.4
      - watchOS 26.4
  Android SDK:
    API Levels:
      - "29"
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 29.0.3
      - 34.0.0
      - 35.0.0
      - 36.0.0
      - 36.1.0
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.27397.103.2522.14617522
  Xcode:
    version: 26.4/17E192
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.0.7
    path: /opt/homebrew/opt/ruby@3.0/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.3
    wanted: ^20.1.3
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.4
    wanted: 0.83.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.84.1 is now available (your project is running on v0.83.4).

Steps to reproduce

toast.show({label:"test"})
The frame rate of the UI will drop dramatically when called consecutively multiple times

Reproducible example repository

no

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions