Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: RFC-0759 break apart iOS auto-linking #2335

Conversation

blakef
Copy link
Contributor

@blakef blakef commented Mar 15, 2024

Summary:

Instead of native_modules serving use_native_modules!(config), users should now use autolink_native_modules!() from autolinking.rb.

This is being used in react-native-community/template#7

Warning

This needs to wait for nightlies to land with the updated TypeScript definitions, expect CI to fail until then.

Test Plan:

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

Instead of native_modules serving `use_native_modules!(config)`, users
should now use `autolink_native_modules!()` from autolinking.rb.

This is being used in react-native-community/template#7
@github-actions github-actions bot added docs Documentation change feature labels Mar 15, 2024
@blakef blakef changed the title feat: RFC-0759 break apart iOS autolinking feat: RFC-0759 break apart iOS auto-linking Mar 15, 2024
Comment on lines +6 to +8
# 15.0.0-alpha.1 (2024-03-15)

feat: added autolinking.rb, which breaks up use_native_modules! into list_native_modules!, and link_native_modules! (which lives in react-native).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unusre we're actually using this CHANGELOG file 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, we're not adding CHANGELOG inside this repo.

Comment on lines +94 to +97
# You should be using this instead of use_native_modules, which is deprecated.
def autolink_native_modules!()
link_native_modules! list_native_modules!()
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we achieve the same without having to go through a deprecation cycle but by just changing the import path for the use_native_modules function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spoke with @cipolleschi about the design, and I've leaning towards what you've described: keep the use_native_modules API to avoid a deprecation cycle / effort from our users.

Copy link

There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.

@github-actions github-actions bot added the stale label Jul 10, 2024
@TMisiukiewicz TMisiukiewicz added no-stale-bot This issue cannot be marked as stale by stale bot and removed stale labels Jul 10, 2024
@blakef
Copy link
Contributor Author

blakef commented Jul 10, 2024

Closing this as we went in another direction, where autolinking is inlined in react-native core, which is currently being used by the template.

@blakef blakef closed this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation change feature no-stale-bot This issue cannot be marked as stale by stale bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants