Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace native prompt dialog with in-app modal#8614

Open
r6mez wants to merge 2 commits into
BlueWallet:masterfrom
r6mez:renew-prompt-card
Open

Replace native prompt dialog with in-app modal#8614
r6mez wants to merge 2 commits into
BlueWallet:masterfrom
r6mez:renew-prompt-card

Conversation

@r6mez

@r6mez r6mez commented May 31, 2026

Copy link
Copy Markdown
Contributor

Replaced the react-native-prompt-android native dialog used by prompt() with a themed in-app modal, while preserving the existing API so all current call sites and tests remain unchanged.

Benefits

  • Removes a dependency.
  • Provides a consistent UI with the rest of the app.
  • Supports plain text, secure text, and numeric inputs on both Android and IOS.

Testing

  • I manually verified it on Android, but it still needs iOS manual verification.
Before After
image image

@r6mez

r6mez commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

It was also requested here #8595 (comment)

@r6mez r6mez changed the title REF: replace native prompt dialog with in-app modal Replace native prompt dialog with in-app modal May 31, 2026
@ojokne

ojokne commented Jun 1, 2026

Copy link
Copy Markdown
Member
  • but it still needs iOS manual verification.
Before After
image Simulator Screenshot - iPhone 17 Pro - 2026-06-01 at 09 12 21

@marcosrdz

Copy link
Copy Markdown
Member

Totally against this. Keeping the native UI makes sure we get things for free from the OS(such as accessibility and UX)

@r6mez

r6mez commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Totally against this. Keeping the native UI makes sure we get things for free from the OS(such as accessibility and UX)

I think I can match the accessibility function of the original system prompt, will that be acceptable if fixed?

r6mez added 2 commits June 5, 2026 01:47
Swap react-native-prompt-android for a themed in-app prompt rendered
inside the app window. The prompt() helper keeps its signature, so all
call sites and the existing unit test are untouched.
@r6mez r6mez force-pushed the renew-prompt-card branch from fc96e0f to 9a29e56 Compare June 4, 2026 22:47
@marcosrdz

Copy link
Copy Markdown
Member

Totally against this. Keeping the native UI makes sure we get things for free from the OS(such as accessibility and UX)

I think I can match the accessibility function of the original system prompt, will that be acceptable if fixed?

I personally vote no. The more native the UX the better for us in terms of workload and future needs.

@ncoelho

ncoelho commented Jun 5, 2026

Copy link
Copy Markdown
Member

Nack for me as well.

@GladosBlueWallet GladosBlueWallet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modal bridge finally stops outsourcing a trivial prompt to a native dependency with commitment issues. The host is explicit, cancellation is clean, and the failure mode is honest instead of pretending the platform will save you. A rare day when the test chamber gets a sturdier door.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants