0
난에서 다음과 같은 오류를 받고 있어요
내 네이티브 응용 프로그램 반응하지 않습니다 - this.props.sendDataToTagGroups입니다하지 함수다음과 같은 오류가 기본 반작용 - this.props.sendDataToTagGroups 함수
내가 바인딩해야합니까 여기에 누락 된 설정이 확실하지 않습니다. 내 코드
// 바인딩 this._getSelectedData = this._getSelectedData.bind (this);
// Render tag groups
_renderTagGroups() {
const tagGroups = this.state.tagGroupsArray;
const renderedTagGroups = tagGroups.map(function(tagGroup, key){
return (
<View key={key} style={{flexDirection:'row',flexWrap:'wrap',alignItems: 'flex-start',}}>
<View style={styles.tagGroupContainer}>
<Icon name='tag' size={29} type={"font-awesome"} color={'#58595B'} style={{paddingLeft:20, paddingRight:10,}}/>
<Text style={styles.tagSectionHeaderText}>Select {tagGroup.tagGroupName}</Text>
</View>
<View style={{flexDirection:'row',flexWrap:'wrap',alignItems: 'flex-start',}}>
<Tags tags={tagGroup.tags} tagGroupName={tagGroup.tagGroupName} tagGroupId={tagGroup.tagGroupId} sendDataToTagGroups={this._getSelectedData}/>
</View>
</View>
)
});
return renderedTagGroups
}
render() {
const projectTags = store.getState().selectedProject.project.tagGroups;
const isEmptyProjectTags = _.isEmpty(projectTags);
return (
<View style={[styles.wrapTags]}>
{this.state.indeterminate &&
<Progress.Circle
style={styles.progressContainer}
progress={this.state.progress}
indeterminate={this.state.indeterminate}
/>
}
{!isEmptyProjectTags &&
<View style={[styles.wrapTags]}>
{this._renderTagGroups()}
</View>
}
{isEmptyProjectTags &&
<View>
<Text style={{marginLeft:10, marginTop:15, fontSize:18}}>No tags have been created. Please see your Project Controller or Team Controller to create new tags.</Text>
</View>
}
</View>
)
}