{"action":"closed","issue":{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/122","repository_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views","labels_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/122/comments","events_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/122/events","html_url":"https://github.com/oliviertassinari/react-swipeable-views/issues/122","id":168794846,"number":122,"title":"Reset the component state after a re-render, React-Native","user":{"login":"pnakibar","id":5942199,"avatar_url":"https://avatars.githubusercontent.com/u/5942199?v=3","gravatar_id":"","url":"https://api.github.com/users/pnakibar","html_url":"https://github.com/pnakibar","followers_url":"https://api.github.com/users/pnakibar/followers","following_url":"https://api.github.com/users/pnakibar/following{/other_user}","gists_url":"https://api.github.com/users/pnakibar/gists{/gist_id}","starred_url":"https://api.github.com/users/pnakibar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnakibar/subscriptions","organizations_url":"https://api.github.com/users/pnakibar/orgs","repos_url":"https://api.github.com/users/pnakibar/repos","events_url":"https://api.github.com/users/pnakibar/events{/privacy}","received_events_url":"https://api.github.com/users/pnakibar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-02T04:04:04Z","updated_at":"2016-08-03T19:38:37Z","closed_at":"2016-08-03T19:38:37Z","body":"I'm trying to achieve an swipeable-view with an filter to show only the information I want, and after an re-render the components index stays the same.\r\n\r\nIn the situation, I have two possible arrays of data, one having 2 views and the other having 3 views, and one button to toggle between them, but since after an re-render the react-swipeable-views doesn't re-render and resets the index to 0. If I'm in the 3rd view, and I toggle the array, it shows me an black screen with no way to change swipe, but if I'm in the 2nd view, and toggle the array, it shows perfectly.\r\n\r\nI'm using the component in an React-Native environment."}}
{"actor":{"display_login":"oliviertassinari"}}