maxs15 / maxs15/react-native-modalbox

Modal covers Views despite hierarchy

Open
#157 5 comments 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

I've got a loading spinner in a container view which is at the bottom of the view hierarchy (so it should be furthest forward). But when the modal comes up, it covers this loading view. I'm pretty sure that this wasn't the case in an earlier version. Is there any way to fix this? Pictures below:
screen shot 2017-07-31 at 11 31 05

The loading view has the following style, and since it's below the Modal in the View hierarchy, it should be infront of the Modal:

```
{
position: 'absolute',
flexDirection: 'column',
justifyContent: 'flex-end',
top: 0.5 * Dimensions.get('window').height - 75,
right: 0.5 *Dimensions.get('window').width - 75,
height: 150,
width: 150,
backgroundColor: '#2F3138',
opacity: 0.8,
borderRadius: 10,
}
```

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 in the issue. Start at the repository's modal component entry point and reproduce the loading-view and modal stacking behavior described; done means the loading view's intended visibility relative to the modal is restored and covered by a regression check.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.