-
Notifications
You must be signed in to change notification settings - Fork 904
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
feat: RFC-0759 break apart iOS auto-linking #2335
Conversation
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
# 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). |
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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.
# You should be using this instead of use_native_modules, which is deprecated. | ||
def autolink_native_modules!() | ||
link_native_modules! list_native_modules!() | ||
end |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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. |
Closing this as we went in another direction, where autolinking is inlined in react-native core, which is currently being used by the template. |
Summary:
Instead of native_modules serving
use_native_modules!(config)
, users should now useautolink_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