I'm trying to do a simple map in react-native-swiper. So I use this :
const onlyOneObservation = [...new Array(pagesCount + 1)].map(([key, idx], i) => this.renderPage(key, idx, i))
But with this, I've got this error :
Invalid attempt to destructure non-iterable instance
After research, I don't no where is the problem here.