Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const mapOptions = {
scrollEnabled: true,
};
if (this.state.editing) {
mapOptions.scrollEnabled = false;
mapOptions.onPanDrag = e => this.onPress(e);
}
return (
render() {
const mapOptions = {
scrollEnabled: true,
};
if (this.state.editing) {
mapOptions.scrollEnabled = false;
mapOptions.onPanDrag = e => this.onPress(e);
}
return (