Repository navigation
Commit e1a9622
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 fe71e69 commit e1a9622
53 files changed
Lines changed: 55 additions & 857 deletions
File tree
- packages
- eslint-plugin-react-native
- react-native-babel-preset/src/configs
- react-native
- Libraries
- Components
- SafeAreaView
- TextInput
- View/__tests__
- LogBox
- UI
- 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
- __tests__
- specs
- types_DEPRECATED
- Libraries/Components/SafeAreaView
- rn-tester/js
- examples
- Experimental/PlatformTest
- SafeAreaView
- utils
- private/helloworld
- 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.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
36 | | - | |
| 32 | + | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
47 | | - | |
| 43 | + | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| |||
56 | 52 | | |
57 | 53 | | |
58 | 54 | | |
59 | | - | |
| 55 | + | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
| |||
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
84 | | - | |
| 80 | + | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
| |||
| 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 | | |
| |||
0 commit comments