Skip to content

[Android] Negative text must be set and non-empty. #29

@jesuscc1993

Description

@jesuscc1993

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

Using the code below works on iOS, but seems to do nothing on Android.

SimpleBiometrics.requestBioAuth(
  'prompt-title',
  'prompt-message',
  { allowDeviceCredentials: false }
)

The DevTools logs for Android show the following error:
Negative text must be set and non-empty.

Tested on Android 19 Pixel 8 emulator.

Library version

3.0.2

Environment info

System:
  OS: macOS 26.3.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 76.22 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.22.1
    path: /var/folders/2_/_4ngbvyj55s3yc47kp_57wx80000gn/T/yarn--1778751683086-0.5107574594565016/node
  Yarn:
    version: 1.22.22
    path: /var/folders/2_/_4ngbvyj55s3yc47kp_57wx80000gn/T/yarn--1778751683086-0.5107574594565016/yarn
  npm:
    version: 10.9.4
    path: ~/.nvm/versions/node/v22.22.1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/Txus/.rbenv/shims/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: Not Found
IDEs:
  Android Studio: 2025.3 AI-253.32098.37.2534.15336583
  Xcode:
    version: 26.4.1/17E202
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.2.8
    path: /Users/Txus/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.0
    wanted: 20.1.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.84.1
    wanted: 0.84.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to reproduce

  1. run the readme's example code in Android

Reproducible example repository

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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