{"action":"created","issue":{"url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/437","repository_url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view","labels_url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/437/comments","events_url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/437/events","html_url":"https://github.com/skv-headless/react-native-scrollable-tab-view/issues/437","id":178777287,"number":437,"title":"undefined is not an object(evaluating '_this.props') on android","user":{"login":"liubiggun","id":10906186,"avatar_url":"https://avatars.githubusercontent.com/u/10906186?v=3","gravatar_id":"","url":"https://api.github.com/users/liubiggun","html_url":"https://github.com/liubiggun","followers_url":"https://api.github.com/users/liubiggun/followers","following_url":"https://api.github.com/users/liubiggun/following{/other_user}","gists_url":"https://api.github.com/users/liubiggun/gists{/gist_id}","starred_url":"https://api.github.com/users/liubiggun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liubiggun/subscriptions","organizations_url":"https://api.github.com/users/liubiggun/orgs","repos_url":"https://api.github.com/users/liubiggun/repos","events_url":"https://api.github.com/users/liubiggun/events{/privacy}","received_events_url":"https://api.github.com/users/liubiggun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-23T03:40:27Z","updated_at":"2016-09-27T03:19:17Z","closed_at":null,"body":"It happened When I render a simple ScrollableTabView."},"comment":{"url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/comments/249756265","html_url":"https://github.com/skv-headless/react-native-scrollable-tab-view/issues/437#issuecomment-249756265","issue_url":"https://api.github.com/repos/skv-headless/react-native-scrollable-tab-view/issues/437","id":249756265,"user":{"login":"liubiggun","id":10906186,"avatar_url":"https://avatars.githubusercontent.com/u/10906186?v=3","gravatar_id":"","url":"https://api.github.com/users/liubiggun","html_url":"https://github.com/liubiggun","followers_url":"https://api.github.com/users/liubiggun/followers","following_url":"https://api.github.com/users/liubiggun/following{/other_user}","gists_url":"https://api.github.com/users/liubiggun/gists{/gist_id}","starred_url":"https://api.github.com/users/liubiggun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liubiggun/subscriptions","organizations_url":"https://api.github.com/users/liubiggun/orgs","repos_url":"https://api.github.com/users/liubiggun/repos","events_url":"https://api.github.com/users/liubiggun/events{/privacy}","received_events_url":"https://api.github.com/users/liubiggun/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T03:19:17Z","updated_at":"2016-09-27T03:19:17Z","body":"I try my best to reproduce this bug but nothing accomplished.When I start a new project, it go well. I just can explain how my project at which the bug occur render:\r\n\r\n`\r\n\r\nrender () {\r\n\r\n    const {currentUser, tab, navigator, logout} = this.props\r\n    const labelStrings = ['聊天', '联系人', '我']\r\n    const title =\r\n      tab === 'ChatListPage'\r\n      ? labelStrings[0]\r\n      : tab === 'ContactListPage'\r\n        ? labelStrings[1]\r\n        : labelStrings[2]\r\n\r\n    return (\r\n      <View style={styles.container}>\r\n        <HeaderComponent\r\n          title={title}\r\n          hasReturnButton={false}\r\n          rightButton='null'\r\n          navigator={navigator}\r\n        />\r\n        <ScrollableTabView\r\n          onChangeTab={this.onChangeTab}\r\n          renderTabBar={() =>\r\n            <CustomTabBar\r\n              iconNames={[\r\n                'ios-chatboxes',\r\n                'ios-people',\r\n                'ios-person',\r\n              ]}\r\n              labelStrings={labelStrings}\r\n            />\r\n          }\r\n          scrollWithoutAnimation={true}\r\n          tabBarPosition=\"bottom\">\r\n\r\n          <ChatListPage\r\n            tabLabel=\"ChatListPage\"\r\n            navigator={navigator}\r\n          />\r\n          <ContactListPage\r\n            tabLabel=\"ContactListPage\"\r\n            currentUser={currentUser}\r\n            navigator={navigator}\r\n          />\r\n          <MyselfPage\r\n            tabLabel=\"MyselfPage\"\r\n            currentUser={currentUser}\r\n            navigator={navigator}\r\n            logout={logout}\r\n          />\r\n        </ScrollableTabView>\r\n\r\n      </View>\r\n    )\r\n  }\r\n\r\n`\r\nThe styles.container is just {flex: 1}, the HeaderComponent is just a header menu View and has fixed height, so the rest space of container View is assigned to ScrollableTabView. The children of ScrollableTabView are three simple Views.In ios, it ran well but did not in android and prompt an error \"undefined is not an object(evaluating '_this.props')\". After that I try to modify source code and use ScrollView whether platform is ios or not , it run well both in ios and android! Maybe there is some problem in ViewPagerAndroid?"}}
{"actor":{"display_login":"liubiggun"}}