{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/3900","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3900/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3900/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3900/events","html_url":"https://github.com/wix/react-native-navigation/issues/3900","id":356194842,"node_id":"MDU6SXNzdWUzNTYxOTQ4NDI=","number":3900,"title":"[v2] [Android] leftButtons icon (using vector icons) in topBar does not display","user":{"login":"spiraltrip","id":3600315,"node_id":"MDQ6VXNlcjM2MDAzMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3600315?v=4","gravatar_id":"","url":"https://api.github.com/users/spiraltrip","html_url":"https://github.com/spiraltrip","followers_url":"https://api.github.com/users/spiraltrip/followers","following_url":"https://api.github.com/users/spiraltrip/following{/other_user}","gists_url":"https://api.github.com/users/spiraltrip/gists{/gist_id}","starred_url":"https://api.github.com/users/spiraltrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiraltrip/subscriptions","organizations_url":"https://api.github.com/users/spiraltrip/orgs","repos_url":"https://api.github.com/users/spiraltrip/repos","events_url":"https://api.github.com/users/spiraltrip/events{/privacy}","received_events_url":"https://api.github.com/users/spiraltrip/received_events","type":"User","site_admin":false},"labels":[{"id":951487479,"node_id":"MDU6TGFiZWw5NTE0ODc0Nzk=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/%F0%9F%8F%9A%20stale","name":"🏚 stale","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-01T11:20:08Z","updated_at":"2018-12-11T16:23:30Z","closed_at":null,"author_association":"NONE","body":"When using **react-native-vector-icons**, I can't seem to display the icon in topBar **during initial tree setup.**\r\n_It works fine when I use Navigator.push()_\r\n\r\nIf I were to use **require('./assets/someImage.png')**, it will show.\r\n\r\nI suspect this has something to do in the delay of the async processes of getImageSource...\r\n\r\n```javascript\r\nimport { Navigation } from 'react-native-navigation';\r\nimport Icon from 'react-native-vector-icons/EvilIcons';\r\nimport { registerScreens } from './screens';\r\nimport * as CONST from './screens/constants';\r\n\r\nlet settingsIcon;\r\nregisterScreens();\r\n\r\nNavigation.events().registerAppLaunchedListener(() => {\r\n\tpopulateIcons().then(() => {\r\n\t\tNavigation.setRoot(sideMenu);\r\n\t});\r\n});\r\n\r\nfunction populateIcons() {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tPromise.all([Icon.getImageSource('ei-navicon', 32, 'black')])\r\n\t\t\t// other fetches\r\n\t\t\t.then(values => {\r\n\t\t\t\tsettingsIcon = values[0];\r\n\t\t\t\tresolve(true);\r\n\t\t\t})\r\n\t\t\t.catch(error => {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t\treject(error);\r\n\t\t\t})\r\n\t\t\t.done();\r\n\t});\r\n}\r\n\r\nconst simpleLayout = {\r\n\troot: {\r\n\t\tstack: {\r\n\t\t\tchildren: [{\r\n\t\t\t\tcomponent: {\r\n\t\t\t\t\tid: CONST.NAV_LISTSTYLES,\r\n\t\t\t\t\tname: CONST.NAV_LISTSTYLES,\r\n\t\t\t\t\toptions: {\r\n\t\t\t\t\t\ttopBar: {\r\n\t\t\t\t\t\t\ttitle: {\r\n\t\t\t\t\t\t\t\ttext: 'My App',\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tleftButtons: [{\r\n\t\t\t\t\t\t\t\tid: 'buttonOne',\r\n\t\t\t\t\t\t\t\ticon: settingsIcon,\r\n\t\t\t\t\t\t\t}, ],\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t},\r\n\t\t\t\t},\r\n\t\t\t}, ],\r\n\t\t},\r\n\t},\r\n};\r\n```\r\n\r\n* React Native Navigation version: 2.0.2514\r\n* React Native version: 0.55.4\r\n* Platform(s) (iOS, Android, or both?): Android\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Android Emulator\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/446265067","html_url":"https://github.com/wix/react-native-navigation/issues/3900#issuecomment-446265067","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3900","id":446265067,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjI2NTA2Nw==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-12-11T16:23:30Z","updated_at":"2018-12-11T16:23:30Z","author_association":"NONE","body":"The issue has been closed for inactivity.\n"}}
{"actor":{"display_login":"stale"}}