maxs15 / maxs15/react-native-modalbox

backButtonClose prop doesn't work as expected

Open
#266 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.9k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

In my case, I am overriding the android default back behaviour using BackHandler api.
backButtonClose prop set false by default.

My requirement was to hide the status bar in android which this modal provides me.

Now when the modal is on the screen and if I press the back button the modal gets close and also the status bar is shown.

Basically, like the Modal provided by React Native, it should block the back button press when modal is is displayed and also the status bar should be hidden in all cases.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the modal's backButtonClose handling and its Android BackHandler integration, then compare the behavior with React Native's Modal. Done means the displayed modal blocks the Android back action as requested and the status bar remains hidden.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.