maxs15 / maxs15/react-native-modalbox

modal opening only once

Open
#76 0 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

When i press open modal button it is opening and after selecting value from the list,the modal is not displaying but it displays in another view.

<Modal animationDuration={100} style={{height: windowSize.height-200, width:windowSize.width-100,}}`
backdropPressToClose={false}
swipeToClose={false} position={"center"} backdropOpacity={0.8} ref='deliverytimepopup' >
<View style={{backgroundColor: '#ffffff', flex: 1,flexDirection: 'column',}}>

{
this.state.deliveryTimes.deliveryTimep.map((time,key) => (

<TouchableHighlight onPress={(tmp)=>{this.selectTime(key);return true;}}>
{this.state.deliveryTimes.deliveryTimep[key].indexOf('AP') >= 0 || this.state.deliveryTimes.deliveryTimep.length==1?<Image source={this.state.deliveryTimes.selectedImage[key]} style={{ margin: 6, }}/><Text style={styles[(this.state.selectedKey==key?"textstyleblackdeliver":"textstyledelivery")]}>{this.state.deliveryTimes.deliveryTimep[key].split("(")[0]}

:
<Image source={this.state.deliveryTimes.selectedImage[key]} style={{ margin: 6, }}/>
<Text style={styles[(this.state.selectedKey==key?"textstyleblackdeliver":"textstyledelivery")]}>{this.state.deliveryTimes.deliveryTimep[key].split("(")[0]}
}


))
}

     </ScrollView> 
     </View>

`

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

Start by reproducing the reported flow using the provided Modal, ScrollView, and TouchableHighlight code: open the modal, select a delivery time, and open it again. Inspect how the selection handler affects modal visibility and verify that the modal reopens in the same view after the issue is fixed.

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.