{"action":"opened","issue":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/218","repository_url":"https://api.github.com/repos/leecade/react-native-swiper","labels_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/218/comments","events_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/218/events","html_url":"https://github.com/leecade/react-native-swiper/issues/218","id":173014045,"number":218,"title":"[help] Fixed index","user":{"login":"flaviotobi","id":13239857,"avatar_url":"https://avatars.githubusercontent.com/u/13239857?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviotobi","html_url":"https://github.com/flaviotobi","followers_url":"https://api.github.com/users/flaviotobi/followers","following_url":"https://api.github.com/users/flaviotobi/following{/other_user}","gists_url":"https://api.github.com/users/flaviotobi/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviotobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviotobi/subscriptions","organizations_url":"https://api.github.com/users/flaviotobi/orgs","repos_url":"https://api.github.com/users/flaviotobi/repos","events_url":"https://api.github.com/users/flaviotobi/events{/privacy}","received_events_url":"https://api.github.com/users/flaviotobi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T17:38:32Z","updated_at":"2016-08-24T17:38:32Z","closed_at":null,"body":"Hi, what i'm trying to do is to \"fix\" the index of the swiper.\r\ni'm passing an  array with three position [0,1,2], and what i'm doing is change the information, when i swipe from right to left, i pass the information from [1] to position [0], [2] to position [1] and a i put new information in position [2] of the array.\r\nIn iOS i already did this, by changing  in the file react-native-swiper/src/index.js, but in android dosent work.\r\nAnyone have an ideia ??\r\n\r\noriginal file in line 193\r\n\r\n    if (state.total === initState.total) {\r\n      // retain the index\r\n      initState.index = state.index\r\n    } else {\r\n      // reset the index\r\n      initState.index = initState.total > 1 ? Math.min(props.index, initState.total - 1) : 0\r\n    }\r\n\r\nchanged \r\n\r\n    if (state.total === initState.total) {\r\n      initState.index =1\r\n    } else {\r\n      initState.index = 1\r\n    }\r\n"}}
{"actor":{"display_login":"flaviotobi"}}