-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Migrate files in Libraries/Modal and Libraries/Network to use export syntax #49035
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D68827032 |
…syntax (facebook#49035) Summary: ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates files in `Libraries/Modal/*.js` and `Libraries/Network/*.js` to use the `export` syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to modules inside `Libraries/Modal` and `Libraries/Network` with `require` syntax may need to be appended with '.default'. Differential Revision: D68827032
a761119
to
b9d970c
Compare
This pull request was exported from Phabricator. Differential Revision: D68827032 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D68827032 |
…syntax (facebook#49035) Summary: Pull Request resolved: facebook#49035 ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates files in `Libraries/Modal/*.js` and `Libraries/Network/*.js` to use the `export` syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to modules inside `Libraries/Modal` and `Libraries/Network` with `require` syntax may need to be appended with '.default'. Differential Revision: D68827032
b9d970c
to
fa9c965
Compare
…syntax (facebook#49035) Summary: ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates files in `Libraries/Modal/*.js` and `Libraries/Network/*.js` to use the `export` syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to modules inside `Libraries/Modal` and `Libraries/Network` with `require` syntax may need to be appended with '.default'. Reviewed By: huntie Differential Revision: D68827032
fa9c965
to
85941fc
Compare
This pull request was exported from Phabricator. Differential Revision: D68827032 |
…syntax (facebook#49035) Summary: ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates files in `Libraries/Modal/*.js` and `Libraries/Network/*.js` to use the `export` syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to modules inside `Libraries/Modal` and `Libraries/Network` with `require` syntax may need to be appended with '.default'. Reviewed By: huntie Differential Revision: D68827032
85941fc
to
38eddcb
Compare
This pull request was exported from Phabricator. Differential Revision: D68827032 |
…syntax (facebook#49035) Summary: ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates files in `Libraries/Modal/*.js` and `Libraries/Network/*.js` to use the `export` syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to modules inside `Libraries/Modal` and `Libraries/Network` with `require` syntax may need to be appended with '.default'. Reviewed By: huntie Differential Revision: D68827032
38eddcb
to
3d6d1bc
Compare
This pull request was exported from Phabricator. Differential Revision: D68827032 |
Summary:
Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.
This diff
Libraries/Modal/*.js
andLibraries/Network/*.js
to use theexport
syntax..default
Changelog:
[General][Breaking] - Deep imports to modules inside
Libraries/Modal
andLibraries/Network
withrequire
syntax may need to be appended with '.default'.Differential Revision: D68827032