{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-360/issues/318","repository_url":"https://api.github.com/repos/facebook/react-360","labels_url":"https://api.github.com/repos/facebook/react-360/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-360/issues/318/comments","events_url":"https://api.github.com/repos/facebook/react-360/issues/318/events","html_url":"https://github.com/facebook/react-360/issues/318","id":253598660,"node_id":"MDU6SXNzdWUyNTM1OTg2NjA=","number":318,"title":"Linking to a new browser tab","user":{"login":"hendrasan","id":168755,"node_id":"MDQ6VXNlcjE2ODc1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/168755?v=4","gravatar_id":"","url":"https://api.github.com/users/hendrasan","html_url":"https://github.com/hendrasan","followers_url":"https://api.github.com/users/hendrasan/followers","following_url":"https://api.github.com/users/hendrasan/following{/other_user}","gists_url":"https://api.github.com/users/hendrasan/gists{/gist_id}","starred_url":"https://api.github.com/users/hendrasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendrasan/subscriptions","organizations_url":"https://api.github.com/users/hendrasan/orgs","repos_url":"https://api.github.com/users/hendrasan/repos","events_url":"https://api.github.com/users/hendrasan/events{/privacy}","received_events_url":"https://api.github.com/users/hendrasan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"andrewimm","id":494043,"node_id":"MDQ6VXNlcjQ5NDA0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/494043?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewimm","html_url":"https://github.com/andrewimm","followers_url":"https://api.github.com/users/andrewimm/followers","following_url":"https://api.github.com/users/andrewimm/following{/other_user}","gists_url":"https://api.github.com/users/andrewimm/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewimm/subscriptions","organizations_url":"https://api.github.com/users/andrewimm/orgs","repos_url":"https://api.github.com/users/andrewimm/repos","events_url":"https://api.github.com/users/andrewimm/events{/privacy}","received_events_url":"https://api.github.com/users/andrewimm/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewimm","id":494043,"node_id":"MDQ6VXNlcjQ5NDA0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/494043?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewimm","html_url":"https://github.com/andrewimm","followers_url":"https://api.github.com/users/andrewimm/followers","following_url":"https://api.github.com/users/andrewimm/following{/other_user}","gists_url":"https://api.github.com/users/andrewimm/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewimm/subscriptions","organizations_url":"https://api.github.com/users/andrewimm/orgs","repos_url":"https://api.github.com/users/andrewimm/repos","events_url":"https://api.github.com/users/andrewimm/events{/privacy}","received_events_url":"https://api.github.com/users/andrewimm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-08-29T10:04:36Z","updated_at":"2018-10-23T20:04:41Z","closed_at":null,"author_association":"NONE","body":"I have a `VrButton` with `onClick` event that does `NativeModules.LinkingManager.openURL('<url>');` and it works.\r\n\r\nBut as I test this on browser (and mobile browser), I'd like the VrButton to open the URL in a new tab. I searched on the documentation and the source code but there's no mention of it.\r\n\r\nIs this possible?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/facebook/react-360/issues/comments/432398381","html_url":"https://github.com/facebook/react-360/issues/318#issuecomment-432398381","issue_url":"https://api.github.com/repos/facebook/react-360/issues/318","id":432398381,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjM5ODM4MQ==","user":{"login":"andrewimm","id":494043,"node_id":"MDQ6VXNlcjQ5NDA0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/494043?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewimm","html_url":"https://github.com/andrewimm","followers_url":"https://api.github.com/users/andrewimm/followers","following_url":"https://api.github.com/users/andrewimm/following{/other_user}","gists_url":"https://api.github.com/users/andrewimm/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewimm/subscriptions","organizations_url":"https://api.github.com/users/andrewimm/orgs","repos_url":"https://api.github.com/users/andrewimm/repos","events_url":"https://api.github.com/users/andrewimm/events{/privacy}","received_events_url":"https://api.github.com/users/andrewimm/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T20:04:41Z","updated_at":"2018-10-23T20:04:41Z","author_association":"CONTRIBUTOR","body":"This is very easy to implement on your own with Native Modules, but again there's a good chance it can be blocked by popup blockers because browsers do not typically allow JavaScript to open new windows.\r\n\r\nBasic pseudocode (untested, but you get the gist):\r\n```\r\nimport {Module} from 'react-360-web';\r\n\r\nclass CustomLinkingModule extends Module {\r\n  constructor() {\r\n    super('CustomLinkingModule');\r\n  }\r\n\r\n  openInNewTab(url) {\r\n    window.open(url, '_blank');\r\n  }\r\n}\r\n```\r\n\r\nThen you can call `NativeModules.CustomLinkingModule.openInNewTab('https://example.net')` from React."}}
{"actor":{"display_login":"andrewimm"}}