maxs15 / maxs15/react-native-modalbox
unable to see modal?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to get modal on click of map marker. I cant see any modal on click of map marker. I am using es6 syntax
here is the code
import Modal from 'react-native-modalbox'
openModal4 = (id) => {
this.refs.modal4.open();
}
renderScene () {
return (
<View style={style.mainContainer}>
<MapView
ref="map"
style={styles.map}
rotateEnabled={false}
showsCompass={false}
>
{this.state.markers.map(function(marker){
return(
<MapView.Marker coordinate={marker.latlng} key={marker.id} onPress={this.openModal4} />
);
})}
</MapView>
<View>
<Image
source={require('./assets/map-marker.png')}
/>
</View>
<Modal style={[styles.modal, styles.modal4]} position={"bottom"} ref={"modal4"}>
<Text>you are in modal</Text>
</TouchableOpacity>
</Modal>
</View>
can you help me@maxs15.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue from the shown renderScene code, focusing on MapView.Marker's onPress handler and the Modal ref named modal4. Verify whether tapping a marker reaches openModal4 and whether the modal becomes visible; done means the modal opens on marker click or the project documents a confirmed issue with this usage.
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
- 20/100