{"action":"created","issue":{"url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/50","repository_url":"https://api.github.com/repos/appintheair/react-native-looped-carousel","labels_url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/50/comments","events_url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/50/events","html_url":"https://github.com/appintheair/react-native-looped-carousel/issues/50","id":190826996,"number":50,"title":"Android paging block until going one page back","user":{"login":"DeDuckProject","id":10045034,"avatar_url":"https://avatars.githubusercontent.com/u/10045034?v=3","gravatar_id":"","url":"https://api.github.com/users/DeDuckProject","html_url":"https://github.com/DeDuckProject","followers_url":"https://api.github.com/users/DeDuckProject/followers","following_url":"https://api.github.com/users/DeDuckProject/following{/other_user}","gists_url":"https://api.github.com/users/DeDuckProject/gists{/gist_id}","starred_url":"https://api.github.com/users/DeDuckProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeDuckProject/subscriptions","organizations_url":"https://api.github.com/users/DeDuckProject/orgs","repos_url":"https://api.github.com/users/DeDuckProject/repos","events_url":"https://api.github.com/users/DeDuckProject/events{/privacy}","received_events_url":"https://api.github.com/users/DeDuckProject/received_events","type":"User","site_admin":false},"labels":[{"id":195188664,"url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-11-21T20:28:52Z","updated_at":"2017-02-18T20:41:05Z","closed_at":null,"body":"I have a 4 page carousel.\r\nSometimes, not always, on Android, when I try going forward, I get stuck after the 2nd page. only when I go back one step, and then forward again, I can go more step forward.\r\nAlso I get weird inconsistent jumps with the animation.\r\n\r\nHere's how it looks:\r\n![tutorialandroidbug](https://cloud.githubusercontent.com/assets/10045034/20499358/d5170fb4-b039-11e6-9d56-a02ce8897e67.gif)\r\n\r\nmy code:\r\n```javascript\r\n<Carousel\r\n                    style={carouselStyle.carousel}\r\n                    chosenBulletStyle={carouselStyle.chosenBullet}\r\n                    bulletStyle={carouselStyle.bullet}\r\n                    autoplay={false}\r\n                    bullets={true}\r\n                    pageInfo={false}\r\n                    onAnimateNextPage={(p) => this.pageChange(p)}\r\n                >\r\n                    <FCarouselItem title={strings.tutorial.content[0].title} text={strings.tutorial.content[0].text} image={icons.logo_with_text}/>\r\n                    <FCarouselItem style={{backgroundColor:FetchyColors.primaryColorAlpha}} title={strings.tutorial.content[1].title} text={strings.tutorial.content[1].text} image={icons.tutorial_fab_screen}/>\r\n                    <FCarouselItem style={{backgroundColor:FetchyColors.primaryColorAlpha}} title={strings.tutorial.content[2].title} text={strings.tutorial.content[2].text} image={icons.delivery_add_screen}/>\r\n                    <FCarouselItem style={{backgroundColor:FetchyColors.primaryColorAlpha}} title={strings.tutorial.content[3].title} text={strings.tutorial.content[3].text} image={icons.trip_add_screen}/>\r\n                </Carousel>\r\n```\r\n\r\nthis.pageChange(p) changes the bottom text with setState for the parent component, but even without this - the bug still occurs"},"comment":{"url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/comments/280873390","html_url":"https://github.com/appintheair/react-native-looped-carousel/issues/50#issuecomment-280873390","issue_url":"https://api.github.com/repos/appintheair/react-native-looped-carousel/issues/50","id":280873390,"user":{"login":"ryanhomer","id":600471,"avatar_url":"https://avatars.githubusercontent.com/u/600471?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhomer","html_url":"https://github.com/ryanhomer","followers_url":"https://api.github.com/users/ryanhomer/followers","following_url":"https://api.github.com/users/ryanhomer/following{/other_user}","gists_url":"https://api.github.com/users/ryanhomer/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhomer/subscriptions","organizations_url":"https://api.github.com/users/ryanhomer/orgs","repos_url":"https://api.github.com/users/ryanhomer/repos","events_url":"https://api.github.com/users/ryanhomer/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhomer/received_events","type":"User","site_admin":false},"created_at":"2017-02-18T20:41:04Z","updated_at":"2017-02-18T20:41:04Z","body":"@ammichael @DeDuckProject @Clowning I've not been able to determine yet if this is fixable on the Java side. I managed to track down this piece of code in `node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java`:\r\n\r\n    @Override\r\n    public void scrollToEnd(\r\n\t    ReactScrollView scrollView,\r\n\t    ReactScrollViewCommandHelper.ScrollToEndCommandData data) {\r\n\t\t// ScrollView always has one child - the scrollable area\r\n\t\tint bottom =\r\n\t    scrollView.getChildAt(0).getHeight() + scrollView.getPaddingBottom();\r\n\t\tif (data.mAnimated) {\r\n\t    scrollView.smoothScrollTo(scrollView.getScrollX(), bottom);\r\n\t\t} else {\r\n\t    scrollView.scrollTo(scrollView.getScrollX(), bottom);\r\n\t\t}\r\n    }\r\n\r\nReactScrollView is defined in `ReactScrollView.java` (same directory) and extends `android.widget.ScrollView` so I don't know that there's much, if anything, that can be done.\r\n\r\nWell, at least I see that the workaround has been checked in and merged. So far it seems to be holding up well.\r\n\r\nCheers!"}}
{"actor":{"display_login":"ryanhomer"}}