I am currently facing an issue that I need assistance with:
this.state.renderMap.map(function(name, index) {
return (
<View style={styles.checkBoxWrapper} key={index}>
<CheckBox title={name} value={() => {this.state.name} onValueChange={() => console.log(name)} />
<Text>{name}</Text>
</View>
);
}, this)
While trying to render a map array, everything seems to be functioning as expected. However, I am encountering difficulties in accessing the state, specifically "this.state.{name of current array item}". I have attempted various strategies but none have proven successful thus far. Any guidance provided would be greatly appreciated.
Sincerely,