{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/3653","labels_url":"https://api.github.com/repos/facebook/react-native/issues/3653/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/3653/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/3653/events","html_url":"https://github.com/facebook/react-native/issues/3653","id":113148377,"number":3653,"title":"[Android] ViewPagerAndroid - initialPage not working","user":{"login":"PhilippKrone","id":11861008,"avatar_url":"https://avatars.githubusercontent.com/u/11861008?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilippKrone","html_url":"https://github.com/PhilippKrone","followers_url":"https://api.github.com/users/PhilippKrone/followers","following_url":"https://api.github.com/users/PhilippKrone/following{/other_user}","gists_url":"https://api.github.com/users/PhilippKrone/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilippKrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilippKrone/subscriptions","organizations_url":"https://api.github.com/users/PhilippKrone/orgs","repos_url":"https://api.github.com/users/PhilippKrone/repos","events_url":"https://api.github.com/users/PhilippKrone/events{/privacy}","received_events_url":"https://api.github.com/users/PhilippKrone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-24T09:55:27Z","updated_at":"2015-10-27T03:26:46Z","closed_at":null,"body":"Hello,\r\n\r\n\r\nit seems like \"initialPage\" is not working at all with current master. I'm afraid I can not provide a RNPlay example, as the entire ViewPagerAndroid is not working with the RN versions provided by RNPlay (@jsierles As discussed in Discord yesterday).\r\n\r\nHowever, here is the coding - basically taken from the example section of ViewPagerAndroid.\r\n\r\n````javascript\r\n/**\r\n * Sample React Native App\r\n * https://github.com/facebook/react-native\r\n */\r\n'use strict';\r\n\r\nvar React = require('react-native');\r\nvar {\r\n  AppRegistry,\r\n  StyleSheet,\r\n  Text,\r\n  View,\r\n  ViewPagerAndroid,\r\n} = React;\r\n\r\nvar AwesomeProject = React.createClass({\r\n  render: function() {\r\n    return (\r\n      <ViewPagerAndroid\r\n        style={{flex: 1}}\r\n        initialPage={1}>\r\n        <View style={styles.pageStyle}>\r\n          <Text>First page</Text>\r\n        </View>\r\n        <View style={styles.pageStyle}>\r\n          <Text>Second page</Text>\r\n        </View>\r\n      </ViewPagerAndroid>\r\n    );\r\n  }\r\n});\r\n\r\nvar styles = StyleSheet.create({\r\n  pageStyle: {\r\n    alignItems: 'center',\r\n    padding: 20,\r\n  }\r\n});\r\n\r\nAppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);\r\n```\r\n@mkonicek: Do you have an idea here? It seems that you have open sourced this component :)\r\n\r\nThanks a lot!\r\nPhilipp"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/151361789","html_url":"https://github.com/facebook/react-native/issues/3653#issuecomment-151361789","issue_url":"https://api.github.com/repos/facebook/react-native/issues/3653","id":151361789,"user":{"login":"jsierles","id":82,"avatar_url":"https://avatars.githubusercontent.com/u/82?v=3","gravatar_id":"","url":"https://api.github.com/users/jsierles","html_url":"https://github.com/jsierles","followers_url":"https://api.github.com/users/jsierles/followers","following_url":"https://api.github.com/users/jsierles/following{/other_user}","gists_url":"https://api.github.com/users/jsierles/gists{/gist_id}","starred_url":"https://api.github.com/users/jsierles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsierles/subscriptions","organizations_url":"https://api.github.com/users/jsierles/orgs","repos_url":"https://api.github.com/users/jsierles/repos","events_url":"https://api.github.com/users/jsierles/events{/privacy}","received_events_url":"https://api.github.com/users/jsierles/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T03:26:46Z","updated_at":"2015-10-27T03:26:46Z","body":"This should be working now: https://rnplay.org/apps/PIRSqg"}}