{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/360","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/360/labels{/name}","comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/360/comments","events_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/360/events","html_url":"https://github.com/react-native-training/react-native-elements/pull/360","id":227245944,"number":360,"title":"Create new Avatar component with configurable edit button and status indicator","user":{"login":"lsps9150414","id":5022617,"avatar_url":"https://avatars2.githubusercontent.com/u/5022617?v=3","gravatar_id":"","url":"https://api.github.com/users/lsps9150414","html_url":"https://github.com/lsps9150414","followers_url":"https://api.github.com/users/lsps9150414/followers","following_url":"https://api.github.com/users/lsps9150414/following{/other_user}","gists_url":"https://api.github.com/users/lsps9150414/gists{/gist_id}","starred_url":"https://api.github.com/users/lsps9150414/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsps9150414/subscriptions","organizations_url":"https://api.github.com/users/lsps9150414/orgs","repos_url":"https://api.github.com/users/lsps9150414/repos","events_url":"https://api.github.com/users/lsps9150414/events{/privacy}","received_events_url":"https://api.github.com/users/lsps9150414/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-09T04:20:39Z","updated_at":"2017-05-10T04:20:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/360","html_url":"https://github.com/react-native-training/react-native-elements/pull/360","diff_url":"https://github.com/react-native-training/react-native-elements/pull/360.diff","patch_url":"https://github.com/react-native-training/react-native-elements/pull/360.patch"},"body":"![2017-05-08 7 38 34](https://cloud.githubusercontent.com/assets/5022617/25835487/c328a7de-34b1-11e7-837a-02323649e254.png)\r\n![avatar-1](https://cloud.githubusercontent.com/assets/5022617/25835488/c32b2504-34b1-11e7-86d2-6952918a36ea.png)\r\n![avatar-2](https://cloud.githubusercontent.com/assets/5022617/25835489/c32ea828-34b1-11e7-8519-3931e8a8ce90.png)\r\n\r\n**API:**\r\n```javascript\r\nconst propTypes = {\r\n  component: PropTypes.oneOf([\r\n    View,\r\n    TouchableOpacity,\r\n    TouchableHighlight,\r\n    TouchableNativeFeedback,\r\n    TouchableWithoutFeedback,\r\n  ]),\r\n  size: PropTypes.number,\r\n  rounded: PropTypes.bool,\r\n  containerStyle: View.propTypes.style,\r\n\r\n  avatarContainerProps: PropTypes.object,\r\n  avatarContainerStyle: View.propTypes.style,\r\n\r\n  source: PropTypes.object,\r\n  imageStyle: Image.propTypes.style,\r\n\r\n  icon: PropTypes.shape({\r\n    name: PropTypes.string,\r\n    type: PropTypes.string,\r\n    color: PropTypes.string,\r\n    style: View.propTypes.style,\r\n  }),\r\n\r\n  title: PropTypes.shape({\r\n    text: PropTypes.string,\r\n    color: PropTypes.string,\r\n    style: Text.propTypes.style,\r\n  }),\r\n\r\n  showEditButton: PropTypes.bool,\r\n  onEditPress: PropTypes.func,\r\n  editButton: PropTypes.shape({\r\n    size: PropTypes.number,\r\n    iconName: PropTypes.string,\r\n    iconType: PropTypes.string,\r\n    iconColor: PropTypes.string,\r\n    underlayColor: PropTypes.string,\r\n    style: View.propTypes.style,\r\n  }),\r\n\r\n  showIndicator: PropTypes.bool,\r\n  indicator: PropTypes.shape({\r\n    size: PropTypes.number,\r\n    types: PropTypes.arrayOf(PropTypes.shape({\r\n      key: PropTypes.string,\r\n      color: PropTypes.string,\r\n    })),\r\n    status: PropTypes.string,\r\n    style: View.propTypes.style,\r\n  }),\r\n};\r\n\r\nconst defaultProps = {\r\n  component: View,\r\n  size: 100,\r\n  rounded: false,\r\n  containerStyle: null,\r\n\r\n  avatarContainerProps: {},\r\n  avatarContainerStyle: null,\r\n\r\n  source: null,\r\n  imageStyle: null,\r\n\r\n  icon: {\r\n    name: null,\r\n    type: 'material',\r\n    color: '#fff',\r\n    style: null,\r\n  },\r\n\r\n  title: {\r\n    text: null,\r\n    color: DEFAULT_COLORS[3],\r\n    style: null,\r\n  },\r\n\r\n  showEditButton: false,\r\n  onEditPress: null,\r\n  editButton: {\r\n    size: null,\r\n    iconName: 'mode-edit',\r\n    iconType: 'material',\r\n    iconColor: '#fff',\r\n    underlayColor: DEFAULT_COLORS[0],\r\n    style: null,\r\n  },\r\n\r\n  showIndicator: false,\r\n  indicator: {\r\n    size: null,\r\n    types: [\r\n      { key: 'active', color: 'green' },\r\n      { key: 'inactive', color: 'red' },\r\n    ],\r\n    status: 'active',\r\n    style: null,\r\n  },\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/comments/300369553","html_url":"https://github.com/react-native-training/react-native-elements/pull/360#issuecomment-300369553","issue_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/360","id":300369553,"user":{"login":"lsps9150414","id":5022617,"avatar_url":"https://avatars2.githubusercontent.com/u/5022617?v=3","gravatar_id":"","url":"https://api.github.com/users/lsps9150414","html_url":"https://github.com/lsps9150414","followers_url":"https://api.github.com/users/lsps9150414/followers","following_url":"https://api.github.com/users/lsps9150414/following{/other_user}","gists_url":"https://api.github.com/users/lsps9150414/gists{/gist_id}","starred_url":"https://api.github.com/users/lsps9150414/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsps9150414/subscriptions","organizations_url":"https://api.github.com/users/lsps9150414/orgs","repos_url":"https://api.github.com/users/lsps9150414/repos","events_url":"https://api.github.com/users/lsps9150414/events{/privacy}","received_events_url":"https://api.github.com/users/lsps9150414/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T04:20:19Z","updated_at":"2017-05-10T04:20:19Z","body":"@binoy14 Thanks! Will dig into it when I get time."}}
{"actor":{"display_login":"lsps9150414"}}