{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/318","repository_url":"https://api.github.com/repos/react-native-training/react-native-elements","labels_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/318/comments","events_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/318/events","html_url":"https://github.com/react-native-training/react-native-elements/issues/318","id":222316245,"number":318,"title":"Card: Title can no longer be Object","user":{"login":"RWOverdijk","id":781745,"avatar_url":"https://avatars3.githubusercontent.com/u/781745?v=3","gravatar_id":"","url":"https://api.github.com/users/RWOverdijk","html_url":"https://github.com/RWOverdijk","followers_url":"https://api.github.com/users/RWOverdijk/followers","following_url":"https://api.github.com/users/RWOverdijk/following{/other_user}","gists_url":"https://api.github.com/users/RWOverdijk/gists{/gist_id}","starred_url":"https://api.github.com/users/RWOverdijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWOverdijk/subscriptions","organizations_url":"https://api.github.com/users/RWOverdijk/orgs","repos_url":"https://api.github.com/users/RWOverdijk/repos","events_url":"https://api.github.com/users/RWOverdijk/events{/privacy}","received_events_url":"https://api.github.com/users/RWOverdijk/received_events","type":"User","site_admin":false},"labels":[{"id":439000336,"url":"https://api.github.com/repos/react-native-training/react-native-elements/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-18T06:34:40Z","updated_at":"2017-06-03T08:11:42Z","closed_at":null,"body":"### Description\r\n<img width=\"487\" alt=\"screenshot 2017-04-18 08 20 19\" src=\"https://cloud.githubusercontent.com/assets/781745/25117319/dbeff5ac-2411-11e7-9255-904f4c1e2c7e.png\">\r\n\r\nBefore updating to 0.11, I was on 0.10. My card used custom <Text /> components, so I could give my subtitle a max of two lines:\r\n\r\n```jsx\r\nclass ActivitiesScreen extends React.Component {\r\n  renderSubtitle(subtitle) {\r\n    return <Text style={styles.description} numberOfLines={2}>{subtitle}</Text>;\r\n  }\r\n\r\n  renderItem\r\n<img width=\"487\" alt=\"screenshot 2017-04-18 08 20 19\" src=\"https://cloud.githubusercontent.com/assets/781745/25117319/dbeff5ac-2411-11e7-9255-904f4c1e2c7e.png\">\r\n(rowData) {\r\n    rowData = rowData.item;\r\n\r\n    return (\r\n      <TouchableOpacity onPress={() => this.activityPressed(rowData)}>\r\n        <ListItem\r\n          roundAvatar\r\n          subtitle={this.renderSubtitle(rowData.short)}\r\n          avatar={{uri: rowData.cover_image.location}}\r\n        />\r\n      </TouchableOpacity>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nNow, title and subtitle are no longer accepting anything other than strings (I get warnings, and my numberOfLines gets ignored).\r\n"},"comment":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/comments/305959905","html_url":"https://github.com/react-native-training/react-native-elements/issues/318#issuecomment-305959905","issue_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/318","id":305959905,"user":{"login":"nonotest","id":2551341,"avatar_url":"https://avatars3.githubusercontent.com/u/2551341?v=3","gravatar_id":"","url":"https://api.github.com/users/nonotest","html_url":"https://github.com/nonotest","followers_url":"https://api.github.com/users/nonotest/followers","following_url":"https://api.github.com/users/nonotest/following{/other_user}","gists_url":"https://api.github.com/users/nonotest/gists{/gist_id}","starred_url":"https://api.github.com/users/nonotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonotest/subscriptions","organizations_url":"https://api.github.com/users/nonotest/orgs","repos_url":"https://api.github.com/users/nonotest/repos","events_url":"https://api.github.com/users/nonotest/events{/privacy}","received_events_url":"https://api.github.com/users/nonotest/received_events","type":"User","site_admin":false},"created_at":"2017-06-03T08:11:42Z","updated_at":"2017-06-03T08:11:42Z","body":"Title should be a string for sure but what about cases where you want to have something else on the first line, like a button? At the moment seems like the only way is to use absolute styles.\r\nMaybe add a new prop like antd ? https://ant.design/components/card/\r\nthey have an \"extra\" prop to allow elements on the right side of the title.\r\nthere would definitely be use cases for this?\r\nI dont mind sending a PR.\r\n\r\ncheers,"}}
{"actor":{"display_login":"nonotest"}}