Commit 2c30f8d
committed
[RN] Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986)
## Summary
Migrate internal `Libraries/` import subpaths from `react-native` to the
incoming dedicated entry points in React Native 0.87.
**Motivation**
See [**RFC0894: Removing deep imports from
react-native**](react-native-community/discussions-and-proposals#894)
**Changes**
The `react-private-interface` entry point has been created explicitly
for the private contract between React ↔ React Native, and is 1:1 with
the previous `ReactNativePrivateInterface` module.
Both of the below `Libraries/` paths still exist, but are deprecated —
this is a lagging migration that will enable cleanup in a future RN
version.
- `react-native/Libraries/Core/InitializeCore` →
`react-native/setup-env`
[react/react-native#57475](react/react-native#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react/react-native#57495](react/react-native#57495)
## Test Plan
Flow
DiffTrain build for [96fcba9](96fcba9)1 parent eb40a0d commit 2c30f8d
23 files changed
Lines changed: 143 additions & 155 deletions
File tree
- compiled-rn
- facebook-fbsource/xplat/js
- RKJSModules/vendor/react
- react-dom/cjs
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
- implementations
- shims
- tools/eslint-plugin-react-hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
32186 | 32186 | | |
32187 | 32187 | | |
32188 | 32188 | | |
32189 | | - | |
| 32189 | + | |
32190 | 32190 | | |
32191 | 32191 | | |
32192 | 32192 | | |
32193 | | - | |
| 32193 | + | |
32194 | 32194 | | |
32195 | 32195 | | |
32196 | 32196 | | |
| |||
32227 | 32227 | | |
32228 | 32228 | | |
32229 | 32229 | | |
32230 | | - | |
| 32230 | + | |
32231 | 32231 | | |
32232 | 32232 | | |
32233 | | - | |
| 32233 | + | |
32234 | 32234 | | |
32235 | 32235 | | |
32236 | 32236 | | |
| |||
32380 | 32380 | | |
32381 | 32381 | | |
32382 | 32382 | | |
32383 | | - | |
| 32383 | + | |
32384 | 32384 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
19310 | 19310 | | |
19311 | 19311 | | |
19312 | 19312 | | |
19313 | | - | |
| 19313 | + | |
19314 | 19314 | | |
19315 | 19315 | | |
19316 | 19316 | | |
19317 | 19317 | | |
19318 | 19318 | | |
19319 | 19319 | | |
19320 | | - | |
| 19320 | + | |
19321 | 19321 | | |
19322 | 19322 | | |
19323 | 19323 | | |
| |||
19339 | 19339 | | |
19340 | 19340 | | |
19341 | 19341 | | |
19342 | | - | |
| 19342 | + | |
19343 | 19343 | | |
19344 | 19344 | | |
19345 | | - | |
| 19345 | + | |
19346 | 19346 | | |
19347 | 19347 | | |
19348 | 19348 | | |
| |||
19449 | 19449 | | |
19450 | 19450 | | |
19451 | 19451 | | |
19452 | | - | |
| 19452 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
21370 | 21370 | | |
21371 | 21371 | | |
21372 | 21372 | | |
21373 | | - | |
| 21373 | + | |
21374 | 21374 | | |
21375 | 21375 | | |
21376 | 21376 | | |
21377 | 21377 | | |
21378 | 21378 | | |
21379 | 21379 | | |
21380 | | - | |
| 21380 | + | |
21381 | 21381 | | |
21382 | 21382 | | |
21383 | 21383 | | |
| |||
21399 | 21399 | | |
21400 | 21400 | | |
21401 | 21401 | | |
21402 | | - | |
| 21402 | + | |
21403 | 21403 | | |
21404 | 21404 | | |
21405 | | - | |
| 21405 | + | |
21406 | 21406 | | |
21407 | 21407 | | |
21408 | 21408 | | |
| |||
21525 | 21525 | | |
21526 | 21526 | | |
21527 | 21527 | | |
21528 | | - | |
| 21528 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
32248 | 32248 | | |
32249 | 32249 | | |
32250 | 32250 | | |
32251 | | - | |
| 32251 | + | |
32252 | 32252 | | |
32253 | 32253 | | |
32254 | 32254 | | |
32255 | | - | |
| 32255 | + | |
32256 | 32256 | | |
32257 | 32257 | | |
32258 | 32258 | | |
| |||
32289 | 32289 | | |
32290 | 32290 | | |
32291 | 32291 | | |
32292 | | - | |
| 32292 | + | |
32293 | 32293 | | |
32294 | 32294 | | |
32295 | | - | |
| 32295 | + | |
32296 | 32296 | | |
32297 | 32297 | | |
32298 | 32298 | | |
| |||
32767 | 32767 | | |
32768 | 32768 | | |
32769 | 32769 | | |
32770 | | - | |
| 32770 | + | |
32771 | 32771 | | |
32772 | 32772 | | |
32773 | 32773 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
19327 | 19327 | | |
19328 | 19328 | | |
19329 | 19329 | | |
19330 | | - | |
| 19330 | + | |
19331 | 19331 | | |
19332 | 19332 | | |
19333 | 19333 | | |
19334 | 19334 | | |
19335 | 19335 | | |
19336 | 19336 | | |
19337 | | - | |
| 19337 | + | |
19338 | 19338 | | |
19339 | 19339 | | |
19340 | 19340 | | |
| |||
19356 | 19356 | | |
19357 | 19357 | | |
19358 | 19358 | | |
19359 | | - | |
| 19359 | + | |
19360 | 19360 | | |
19361 | 19361 | | |
19362 | | - | |
| 19362 | + | |
19363 | 19363 | | |
19364 | 19364 | | |
19365 | 19365 | | |
| |||
19628 | 19628 | | |
19629 | 19629 | | |
19630 | 19630 | | |
19631 | | - | |
| 19631 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
21391 | 21391 | | |
21392 | 21392 | | |
21393 | 21393 | | |
21394 | | - | |
| 21394 | + | |
21395 | 21395 | | |
21396 | 21396 | | |
21397 | 21397 | | |
21398 | 21398 | | |
21399 | 21399 | | |
21400 | 21400 | | |
21401 | | - | |
| 21401 | + | |
21402 | 21402 | | |
21403 | 21403 | | |
21404 | 21404 | | |
| |||
21420 | 21420 | | |
21421 | 21421 | | |
21422 | 21422 | | |
21423 | | - | |
| 21423 | + | |
21424 | 21424 | | |
21425 | 21425 | | |
21426 | | - | |
| 21426 | + | |
21427 | 21427 | | |
21428 | 21428 | | |
21429 | 21429 | | |
| |||
21708 | 21708 | | |
21709 | 21709 | | |
21710 | 21710 | | |
21711 | | - | |
| 21711 | + | |
21712 | 21712 | | |
21713 | 21713 | | |
21714 | 21714 | | |
| |||
0 commit comments