Uh oh!
There was an error while loading. Please reload this page.
Universal Linking component - #4546
Conversation
facebook-github-bot
commented
Dec 3, 2015
By analyzing the blame information on this pull request, we identified @philikon, @nicklockwood and @vjeux to be potential reviewers. |
vjeux
commented
Dec 3, 2015
cc @dmmiller who's running the effort of unifying iOS and Android apis :) |
philikon
commented
Dec 3, 2015
Could the diff be expressed as a rename of |
satya164
commented
Dec 4, 2015
I think we should show a warning when someone tries to use the events on Android. Also, deep linking on Android is not supported on master, I've a pull request open here #4320 . However, I need to test it with my latest changes before I get it merged. |
satya164
commented
Dec 4, 2015
BTW, currently we have 3 different files, LinkingIOS, IntentAndroid and Linking. We could merge them to a single Linking.js file and just export it as LinkingIOS, IntentAndroid and Linking for backward compatibility. |
nicklockwood
commented
Dec 4, 2015
Is "Linking" a good name for this? I can't say I'm a fan of it. If we're renaming it anyway, might as well pick something we like. |
satya164
commented
Dec 4, 2015
@nicklockwood Any ideas for a Good name? |
nicklockwood
commented
Dec 4, 2015
Something like Routing? or URLRouting? I don't know. Names are hard ¯_(ツ)_/¯ |
satya164
commented
Dec 4, 2015
@nicklockwood Routing sounds like it has something to do with React (Native) Router :| Yeah, names are pretty damn hard :( |
chirag04
commented
Dec 4, 2015
Agree with you guys. How about @satya164: having one file and exporting it as linkingios, intentAndroid etc sounds like a good plan |
satya164
commented
Dec 4, 2015
@chirag04 Nah, URL means, well URL (URL.openURL(url: string) is kinda weird), and History is more like what the Navigators does. |
chirag04
commented
Dec 4, 2015
yeah. let's wait for more suggestions. I will update the PR accordingly. My plan was to start a discussion around this with this PR :) |
mkonicek
commented
Dec 9, 2015
Thanks for doing this! We should remove LinkingIOS and IntentAndroid in a followup PR, will need to update internal fb code with that. I don't mind the name Linking - it's used to open external "links". Looks like you need to rebase, sorry for the delay. Have many PRs in the queue and doing the branch cut for 0.17. |
mkonicek
commented
Dec 9, 2015
Adding a label so I don't forget about this PR. |
chirag04
commented
Dec 10, 2015
@mkonicek I'm on vacation till 26th Dec. I will try to rebase and submit the follow up PR soon. Keeping it open till then. |
mkonicek
commented
Dec 13, 2015
No problem, enjoy your vacation @chirag04 :) |
facebook-github-bot
commented
Dec 30, 2015
@chirag04 updated the pull request. |
There was a problem hiding this comment.
property Linking Property not found in Object.create
There was a problem hiding this comment.
Is the bot linting against my PR branch or master?
facebook-github-bot
commented
Dec 30, 2015
@chirag04 updated the pull request. |
chirag04
commented
Dec 30, 2015
@mkonicek This should be go to go now. let me know we need any modification. Happy to submit subsequent PR to remove other files once we get this merged. |
There was a problem hiding this comment.
property Linking Property not found in Object.create
facebook-github-bot
commented
Dec 30, 2015
@chirag04 updated the pull request. |
satya164
commented
Dec 30, 2015
@chirag04 |
satvikmaker
commented
Dec 30, 2015
How about the name
|
chirag04
commented
Dec 30, 2015
satya164
commented
Dec 30, 2015
satya164
commented
Dec 30, 2015
@bozzmob Not a fan of it. There are method like |
satvikmaker
commented
Dec 31, 2015
@satya164 Agree with you. |
mkonicek
commented
Jan 6, 2016
mkonicek
commented
Jan 6, 2016
Looks like it's a constant on iOS and a method on Android? Don't have a strong preference - if it's hard to make it a constant on Android can we just make it a function with a callback in |
nicklockwood
commented
Jan 6, 2016
Couldn't you implement popInitialURL on Android by calling getInitialURL internally and then popping to it? |
satya164
commented
Jan 6, 2016
@nicklockwood We could. But it can change, and having it in a constant will be confusing. |
mkonicek
commented
Jan 6, 2016
Yeah, I'm not sure when to call |
chirag04
commented
Jan 15, 2016
closing in favor of #5336. Let's continue the discussion there. |
A lot of code is redundant in IntentAndroid and LinkingIOS. This bridges that gap.
Not sure what we should do with IntentAndroid.js and LinkingIOS.js if we merge this.
cc @mkonicek@ide@brentvatne