Repository navigation
Commit 148865c
committed
Remove the native SafeAreaView and the deprecated public export
`SafeAreaView` has been deprecated for several releases in favour of
`react-native-safe-area-context`, and the previous change moved the core
surfaces that cannot use the library onto a JavaScript implementation built
on the safe area insets prop. Nothing needs the native component now.
Removed: the C++ shadow node, state and component descriptor, the iOS
component view, the Android view and view manager, the codegen spec and every
registration of them, plus the long-deprecated public export from `index.js`,
the Flow and TypeScript surfaces, the deprecated type stubs, the Babel lazy
import list and the ESLint import map. The private component drops its
`_INTERNAL_DO_NOT_USE` suffix now that it is the only one left.
This is a breaking change for anyone still importing `SafeAreaView` from
`react-native`; the replacement is `react-native-safe-area-context`, or the
`experimental_onSafeAreaInsetsChange` prop directly.1 parent f2a8a05 commit 148865c
42 files changed
Lines changed: 2 additions & 840 deletions
File tree
- packages
- eslint-plugin-react-native
- react-native-babel-preset/src/configs
- react-native
- Libraries/Components/SafeAreaView
- ReactAndroid
- api
- src/main
- java/com/facebook/react
- shell
- views/safeareaview
- jni
- react/fabric
- ReactCommon
- react/renderer/components/safeareaview
- React
- Base
- Fabric/Mounting/ComponentViews
- SafeAreaView
- __typetests__
- scripts/ios-prebuild
- src/private/components/safeareaview/specs
- types_DEPRECATED
- Libraries/Components/SafeAreaView
- rn-tester/js
- examples/SafeAreaView
- utils
- scripts/cxx-api/api-snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 146 | | |
151 | 147 | | |
152 | 148 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 35 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
| |||
528 | 527 | | |
529 | 528 | | |
530 | 529 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 530 | | |
538 | 531 | | |
539 | 532 | | |
| |||
586 | 579 | | |
587 | 580 | | |
588 | 581 | | |
589 | | - | |
| 582 | + | |
590 | 583 | | |
591 | 584 | | |
592 | 585 | | |
| |||
709 | 702 | | |
710 | 703 | | |
711 | 704 | | |
712 | | - | |
713 | 705 | | |
714 | 706 | | |
715 | 707 | | |
| |||
896 | 888 | | |
897 | 889 | | |
898 | 890 | | |
899 | | - | |
900 | 891 | | |
901 | 892 | | |
902 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 100 deletions
This file was deleted.
0 commit comments