i was new to react native, now i face a problem to retrieve object array data from redux. same code working on ios simulator but on android emulator fail(TypeError:undefined is not an object)
onPressme =()=>{
alert(this.props.groupddl.groupDdl[0].label)
}
function mapStateToProps(state) {
return {
groupddl: state.attendanceReducers
};
}
my reducer declare as groupDdl=[]
same code working on ios simulator, fail on android. Any solution will be appreciate. thanks