{"action":"created","issue":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/2375","repository_url":"https://api.github.com/repos/GeekyAnts/NativeBase","labels_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/2375/labels{/name}","comments_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/2375/comments","events_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/2375/events","html_url":"https://github.com/GeekyAnts/NativeBase/issues/2375","id":371564439,"node_id":"MDU6SXNzdWUzNzE1NjQ0Mzk=","number":2375,"title":"Unable to override picker item","user":{"login":"indapublic","id":856260,"node_id":"MDQ6VXNlcjg1NjI2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/856260?v=4","gravatar_id":"","url":"https://api.github.com/users/indapublic","html_url":"https://github.com/indapublic","followers_url":"https://api.github.com/users/indapublic/followers","following_url":"https://api.github.com/users/indapublic/following{/other_user}","gists_url":"https://api.github.com/users/indapublic/gists{/gist_id}","starred_url":"https://api.github.com/users/indapublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indapublic/subscriptions","organizations_url":"https://api.github.com/users/indapublic/orgs","repos_url":"https://api.github.com/users/indapublic/repos","events_url":"https://api.github.com/users/indapublic/events{/privacy}","received_events_url":"https://api.github.com/users/indapublic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-18T14:40:21Z","updated_at":"2018-10-20T00:31:55Z","closed_at":null,"author_association":"NONE","body":"I want override picker item behaviour\r\n\r\n\"native-base\": \"^2.4.2\"\r\n\r\nStandard example is working good\r\n```\r\n<Picker\r\n    {...props}\r\n>\r\n    {items.map(({ label, value }) => <Picker.Item key={value} label={label} value={value} />)}\r\n</Picker>\r\n```\r\n\r\n<img width=\"462\" alt=\"screen shot 2018-10-19 at 00 35 11\" src=\"https://user-images.githubusercontent.com/856260/47162315-0841eb80-d337-11e8-9c1b-8d5346a1b926.png\">\r\n\r\nIf I change Picker.Item to another component \r\n```\r\n{items.map(({ label, value }) => <Text>Hello</Text>)}\r\n```\r\nor\r\n```\r\n{items.map(({ label, value }) => <MyComponent {...props} />)}\r\n```\r\n\r\nI see\r\n\r\n<img width=\"462\" alt=\"screen shot 2018-10-19 at 00 36 07\" src=\"https://user-images.githubusercontent.com/856260/47162378-2a3b6e00-d337-11e8-9d4e-2ad39e982e5b.png\">\r\n\r\nBut if I will add props `label` to component - it works again ¯\\_(ツ)_/¯  \r\n\r\n```\r\n{items.map(({ label, value }) => <Text label={label}>Hello</Text>)}\r\n```\r\n\r\nIs it possible use custom component for picker item?"},"comment":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/comments/431533426","html_url":"https://github.com/GeekyAnts/NativeBase/issues/2375#issuecomment-431533426","issue_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/2375","id":431533426,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTUzMzQyNg==","user":{"login":"indapublic","id":856260,"node_id":"MDQ6VXNlcjg1NjI2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/856260?v=4","gravatar_id":"","url":"https://api.github.com/users/indapublic","html_url":"https://github.com/indapublic","followers_url":"https://api.github.com/users/indapublic/followers","following_url":"https://api.github.com/users/indapublic/following{/other_user}","gists_url":"https://api.github.com/users/indapublic/gists{/gist_id}","starred_url":"https://api.github.com/users/indapublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indapublic/subscriptions","organizations_url":"https://api.github.com/users/indapublic/orgs","repos_url":"https://api.github.com/users/indapublic/repos","events_url":"https://api.github.com/users/indapublic/events{/privacy}","received_events_url":"https://api.github.com/users/indapublic/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T00:31:55Z","updated_at":"2018-10-20T00:31:55Z","author_association":"NONE","body":"So why we not use ‘items’ property?\r\n‘’’\r\nitems: {label, value}[]\r\n‘’’"}}
{"actor":{"display_login":"indapublic"}}