{"action":"closed","issue":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/412","repository_url":"https://api.github.com/repos/leecade/react-native-swiper","labels_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/412/comments","events_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/412/events","html_url":"https://github.com/leecade/react-native-swiper/issues/412","id":228523883,"number":412,"title":"default page is blank when I update the number of children in swiper","user":{"login":"MiRinZhang","id":12370585,"avatar_url":"https://avatars1.githubusercontent.com/u/12370585?v=3","gravatar_id":"","url":"https://api.github.com/users/MiRinZhang","html_url":"https://github.com/MiRinZhang","followers_url":"https://api.github.com/users/MiRinZhang/followers","following_url":"https://api.github.com/users/MiRinZhang/following{/other_user}","gists_url":"https://api.github.com/users/MiRinZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/MiRinZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiRinZhang/subscriptions","organizations_url":"https://api.github.com/users/MiRinZhang/orgs","repos_url":"https://api.github.com/users/MiRinZhang/repos","events_url":"https://api.github.com/users/MiRinZhang/events{/privacy}","received_events_url":"https://api.github.com/users/MiRinZhang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-14T07:15:51Z","updated_at":"2017-05-14T15:10:54Z","closed_at":"2017-05-14T15:10:54Z","body":"I am using Mobxjs and when I update the state. I want the swiper to re-render with a new set of `data`.My component looks something like this:\r\n```\r\n<Swiper\r\n     showsButtons={true}\r\n     showsPagination={false}\r\n     prevButton={prevButton}          \r\n     nextButton={nextButton}>\r\n   {\r\n     data.map((value, index) => {\r\n       return (\r\n          <View key={index}>\r\n          ....\r\n          </View>\r\n       )\r\n     })\r\n   }\r\n</Swiper>\r\n```\r\n\r\nWhenever i jump to a new page and update the `data`(use mobxjs) to something larger(like from ['one'] to ['one','two']) or smaller ,then jumpBack, the show page is blank, but when i swipe left or right the `swiper` show correct. \r\n\r\n**How do i fix it?**"}}
{"actor":{"display_login":"MiRinZhang"}}