{"action":"created","issue":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/469","repository_url":"https://api.github.com/repos/leecade/react-native-swiper","labels_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/469/comments","events_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/469/events","html_url":"https://github.com/leecade/react-native-swiper/issues/469","id":243292951,"number":469,"title":"Swiper as ListHeaderComponent in FlatList not rendering any image or text","user":{"login":"chetanparakh","id":18354984,"avatar_url":"https://avatars2.githubusercontent.com/u/18354984?v=4","gravatar_id":"","url":"https://api.github.com/users/chetanparakh","html_url":"https://github.com/chetanparakh","followers_url":"https://api.github.com/users/chetanparakh/followers","following_url":"https://api.github.com/users/chetanparakh/following{/other_user}","gists_url":"https://api.github.com/users/chetanparakh/gists{/gist_id}","starred_url":"https://api.github.com/users/chetanparakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chetanparakh/subscriptions","organizations_url":"https://api.github.com/users/chetanparakh/orgs","repos_url":"https://api.github.com/users/chetanparakh/repos","events_url":"https://api.github.com/users/chetanparakh/events{/privacy}","received_events_url":"https://api.github.com/users/chetanparakh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-17T04:06:31Z","updated_at":"2017-08-18T05:53:13Z","closed_at":null,"body":"I am trying to pass swiper as the header for a FlatList.  My code work when i remove \"<Swiper loop={false} index={0}>\" and \"</Swiper>\". But i want to have swiper imcluded so that i can also swipe between images and make this swiper scroll up when the flatList is scrolled up\r\n\r\n\r\n\r\n      <View>\r\n                <FlatList\r\n                       data = {this.state.mainImages}\r\n                       renderItem = {({item}) => <View><Text>{item.image_slot_id}</Text></View>}\r\n                       KeyExtractor={item => item.imgid}\r\n                       ListHeaderComponent = {() => <RenderImages ImageDetails = {this.state.mainImages}/>}\r\n                 />\r\n      </View>\r\n\r\n-------------------------------------------------------------------------------------------------------------------\r\n\r\n\r\n    class RenderImages extends React.Component {\r\n\tconstructor(props){\r\n\t\tsuper(props)\r\n\t}\r\n\r\n\trenderImagesSwipper() {\r\n\t\treturn(\r\n\t\t\tthis.props.ImageDetails.map(function(imgs){\r\n\t\t\t\treturn(\r\n\t\t\t\t\t<View>\r\n\t\t\t\t\t\t<Image\r\n\t\t\t\t\t\t\tstyle={{height: 100}}\r\n          \t\t\t\t\tsource={{uri: imgs.imgs_url}}\r\n          \t\t\t\t/>\r\n\t\t\t\t\t</View>\r\n\t\t\t\t)\r\n\t\t\t})\r\n\t\t)\r\n\t}\r\n\r\n\trender(){\r\n\t\treturn(\r\n\t\t<View style={{height:200, width:400}}>\r\n\t\t\t\t<Swiper loop={false} index={0}>\r\n\t\t\t\t\t{this.renderImagesSwipper()}\r\n\t\t\t\t</Swiper>\r\n\t\t</View>\r\n\t\t)\r\n\t}\r\n    }\r\n\r\n    export default RenderImages;\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/comments/323266104","html_url":"https://github.com/leecade/react-native-swiper/issues/469#issuecomment-323266104","issue_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/469","id":323266104,"user":{"login":"lizhuoyuan","id":15923901,"avatar_url":"https://avatars1.githubusercontent.com/u/15923901?v=4","gravatar_id":"","url":"https://api.github.com/users/lizhuoyuan","html_url":"https://github.com/lizhuoyuan","followers_url":"https://api.github.com/users/lizhuoyuan/followers","following_url":"https://api.github.com/users/lizhuoyuan/following{/other_user}","gists_url":"https://api.github.com/users/lizhuoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/lizhuoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizhuoyuan/subscriptions","organizations_url":"https://api.github.com/users/lizhuoyuan/orgs","repos_url":"https://api.github.com/users/lizhuoyuan/repos","events_url":"https://api.github.com/users/lizhuoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/lizhuoyuan/received_events","type":"User","site_admin":false},"created_at":"2017-08-18T05:53:13Z","updated_at":"2017-08-18T05:53:13Z","body":"the same question on android"}}
{"actor":{"display_login":"lizhuoyuan"}}