import React, {Component} from 'react';
import {Dimensions, Modal, StyleSheet, Text, TouchableOpacity, View}from 'react-native';const {width} = Dimensions.get('window');
exportdefault classCustomAlertDialog extends Component {
constructor(props) {
super(props);this.state ={
isVisible:this.props.show,
};this.entityList = this.props.entityList;
}
componentWillReceiveProps(nextProps) {this.setState({isVisible: nextProps.show});
}
closeModal() {this.setState({
isVisible:false});this.props.closeModal(false);
}
renderItem(item, i) {return(
{item}
);
}
choose(i) {if (this.state.isVisible) {this.props.callback(i);this.closeModal();
}
}
renderDialog() {return(
{this.entityList.map((item, i) => this.re