Skip to content

Implement auto linking #2853

Closed
Closed

Description

@kmelmon

Proposal: Add support for auto-linking native modules. Also consider implementing react-native link (lower priority)

Summary

With version 60, react-native now supports auto-linking. This item is tracking making sure RNW supports it as well. See https://facebook.github.io/react-native/blog/2019/07/03/version-60

In addition we can consider implementing the Linking native module. See: https://facebook.github.io/react-native/docs/linking
We'll use this issue to decide whether or not we actually do this work as it might be unnecessary.

Motivation

Basic example

Open Questions

Activity

  1. ghost added
    Needs: Triage 🔍
    on Jul 31, 2019
  2. added and removed
    Needs: Triage 🔍
    on Jul 31, 2019
  3. ahimberg commented on Jul 31, 2019

    @ahimberg
    Contributor

    We do have https://github.com/microsoft/react-native-windows/blob/master/vnext/ReactUWP/Modules/LinkingManagerModule.cpp which partially implements the Linking module.

    A couple notes:

    1. openURL doesn't have all the args we'd probably expect on a windows machine. specifically there is no arg to control if this is an external url where a safety prompt should be included. We for now do not include the prompt.
    2. we're missing initialurl and opensettings. In our app we looked at doing this but have multiple activation scenarios that the ios/android impl didn't seem to handle so added our own protocol activation events instead
  4. changed the title [-][PROPOSAL]: Add support for Linking native module[/-] [+]Add support for Linking native module[/+] on Aug 10, 2019
  5. chrisglein commented on Aug 28, 2019

    @chrisglein
    Member

    kmelmon Is this the same as this? Don't want to track in duplicate.

  6. kmelmon commented on Aug 29, 2019

    @kmelmon
    ContributorAuthor

    Chris Glein (@chrisglein) I'm 90% sure these are separate features. #2132 involves changes to the CLI which control how your build pulls in other modules at build time, whereas the linking module happens at runtime.

  7. ahimberg commented on Aug 29, 2019

    @ahimberg
    Contributor

    Yes they're totally different things

  8. added
    Needs: Triage 🔍
    on Sep 20, 2019
  9. acoates-ms commented on Sep 20, 2019

    @acoates-ms
    Contributor

    Added the triage tag back, it sounds like the expo guys would like this module to work, as they use it to open user projects. -- So maybe that would bump the priority up some.

  10. added and removed
    Needs: Triage 🔍
    on Sep 23, 2019
  11. 10 remaining items

  12. added
    Extensions
    on Feb 27, 2020
  13. ddalp commented on Mar 13, 2020

    @ddalp
    Contributor

    TODO at autolink.js

    -- Update main project file to add references to dependencies.
    -- Update soluntion file to build dependency native module projects.

  14. removed their assignment
    on Mar 13, 2020
  15. changed the title [-]Add support for Linking native module[/-] [+]Implement auto linking[/+] on Apr 14, 2020
  16. chrisglein commented on Apr 14, 2020

    @chrisglein
    Member

    Updated the tile. This issue predates auto linking, but the actual interpretation of this work is to make this sort of thing work on Windows: https://reactnative.dev/docs/linking-libraries-ios#automatic-linking

  17. NickGerleman commented on May 6, 2020

    @NickGerleman
    Contributor

    Removing the "must-have" label per recent discussion. This issue does seem super important, but will not be done in time for 0.62. It feels hard to block a release on this item in general until we're closer to having a final implementation.

  18. chrisglein commented on May 12, 2020

    @chrisglein
    Member

    Shared project change will be taken for 62, but full auto linking is targeted for 63 now.

  19. added a commit that references this issue on Jun 19, 2020
    78ae737
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: InfrastructureDeliverableExtensionsenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions