{"action":"opened","issue":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/840","repository_url":"https://api.github.com/repos/leecade/react-native-swiper","labels_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/840/comments","events_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/840/events","html_url":"https://github.com/leecade/react-native-swiper/issues/840","id":345486282,"node_id":"MDU6SXNzdWUzNDU0ODYyODI=","number":840,"title":"Swiper with minimalSize 0 loads forever when swipe to next slide","user":{"login":"acollazomayer","id":9849229,"node_id":"MDQ6VXNlcjk4NDkyMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/9849229?v=4","gravatar_id":"","url":"https://api.github.com/users/acollazomayer","html_url":"https://github.com/acollazomayer","followers_url":"https://api.github.com/users/acollazomayer/followers","following_url":"https://api.github.com/users/acollazomayer/following{/other_user}","gists_url":"https://api.github.com/users/acollazomayer/gists{/gist_id}","starred_url":"https://api.github.com/users/acollazomayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acollazomayer/subscriptions","organizations_url":"https://api.github.com/users/acollazomayer/orgs","repos_url":"https://api.github.com/users/acollazomayer/repos","events_url":"https://api.github.com/users/acollazomayer/events{/privacy}","received_events_url":"https://api.github.com/users/acollazomayer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-28T23:21:14Z","updated_at":"2018-07-28T23:21:14Z","closed_at":null,"author_association":"NONE","body":"### Which OS ?\r\niOS\r\n\r\n### Version\r\nWhich versions are you using:\r\n\r\n- react-native-swiper v1.5.13\r\n- react-native v0.55.4\r\n\r\n### Expected behaviour\r\nI create a Swiper with loadMinimal and loadMinimalSize={0}. I want this because i only want to load the current slide, which gets filled with data. When I enter to the page with the swiper I want to swipe and be able to load each slide correctly\r\n\r\n\r\n### Actual behaviour\r\nWhen I enter to the swiper page the first slide loads correctly however when I slide to the left the second slide shows the ActivityIndicator forever and when i slide to the left again I go to the first slide, and then the swiper starts working correctly as i expected. Loading each slide with the custom data fetched from the server.\r\n\r\n### How to reproduce it>\r\n```\r\n<Swiper\r\n          style={styles.wrapper}\r\n          showsButtons={false}\r\n          showsPagination={false}\r\n          ref={(swiper) => { this.swiper = swiper; }}\r\n          index={0}\r\n          loadMinimal\r\n          loadMinimalSize={0}\r\n          onIndexChanged={this.onIndexChange}\r\n        >\r\n          { channels.map(channel => <EpgList channel={channel} />) }\r\n        </Swiper>\r\n```\r\n\r\n```\r\nimport React, { PureComponent } from 'react';\r\nimport { View, FlatList } from 'react-native';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Program from '../Program';\r\nimport styles from './styles';\r\n\r\nclass EpgList extends PureComponent {\r\n  componentDidMount() {\r\n    const { channel, getEpg } = this.props;\r\n    getEpg(channel['content-id']);\r\n  }\r\n\r\n  renderRow(item) {\r\n    return <Program program={item} />;\r\n  }\r\n\r\n  render() {\r\n    const { epg } = this.props;\r\n\r\n    return (\r\n      <View style={styles.container}>\r\n        <FlatList\r\n          ref={(list) => {\r\n            this.channels = list;\r\n          }}\r\n          initialNumToRender={5}\r\n          data={epg}\r\n          renderItem={({ item }) => (\r\n            this.renderRow(item)\r\n          )}\r\n        />\r\n      </View>\r\n    );\r\n  }\r\n}\r\n\r\nexport default EpgList;\r\n\r\nEpgList.propTypes = {\r\n  navigator: PropTypes.object.isRequired,\r\n  channel: PropTypes.object.isRequired,\r\n  getEpg: PropTypes.func.isRequired,\r\n  epg: PropTypes.array.isRequired,\r\n};\r\n```\r\n\r\n"}}
{"actor":{"display_login":"acollazomayer"}}