React-native-web: Open in new tab

Created on 26 Feb 2020  路  7Comments  路  Source: necolas/react-native-web

It would be great for Linking to provide an option to open in a new window/tab. (Or is there already a way to do this?)

Most helpful comment

It's impossible. The user has to click to a link. Browsers require that.

window.open second argument is target, if I use that with "_blank" it opens in a new tab (at least in Chrome)

All 7 comments

It's impossible to open a new tab without a link with the target.

Window, not tab. Remember it's restricted because of popups.

Window, not tab. Remember it's restricted because of popups.

You are right. I formulated it wrong, it should be open in new tab.

It's impossible. The user has to click to a link. Browsers require that.

It's impossible. The user has to click to a link. Browsers require that.

window.open second argument is target, if I use that with "_blank" it opens in a new tab (at least in Chrome)

Could this solve this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blairio picture blairio  路  3Comments

passion0470 picture passion0470  路  3Comments

iksent picture iksent  路  3Comments

buffaloDeveloper picture buffaloDeveloper  路  3Comments

bcpugh picture bcpugh  路  3Comments