Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Android unable to get object array from redux

$
0
0

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


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>