1
목록 항목이 clicked.and 일 때이 코드를 사용하여 모달로보기를 팝하려면 목록보기를 스크롤하지 않고 스크롤해도 전혀 작동하지 않습니다. .목록보기 항목이있는 기본 모달에 응답하십시오.
renderGymData(rowData){
return(
<View>
<Modal
animationType={'none'}
transparent={false}
visible={!!this.state.selectedRow}>
....
</Modal>
<TouchableHighlight onPress={() => this.showGymDetail(rowData)} >
....
</TouchableHighlight>
</View>);
}
and the render method of my list view is
render() {
return (
<ListView
dataSource={this.state.dataSource}
renderRow={this.renderGymData.bind(this)}
style={styles.listView}>
</ListView>
);
}
나는 내가보기 모달로 표시 할 때문에 navigator.push 사용 싶지 않다.