Commit da8ce9f
Fix Android edge-to-edge display issue in modal
- Use SafeAreaView from react-native-safe-area-context for better edge-to-edge support on Android
- Conditionally apply SafeAreaContextView only on Android to respect safe area insets
- Keep existing SafeAreaView for iOS to maintain backward compatibility
- Add react-native-safe-area-context as peer dependency
Fixes issue where dropdown modal content would extend under system UI (status bar, navigation bar) on Android devices with edge-to-edge display enabled.1 parent 17cc712 commit da8ce9f
2 files changed
+29
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
904 | 908 | | |
905 | 909 | | |
906 | 910 | | |
907 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
908 | 920 | | |
909 | 921 | | |
910 | 922 | | |
| |||
1936 | 1948 | | |
1937 | 1949 | | |
1938 | 1950 | | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
1943 | 1962 | | |
1944 | 1963 | | |
1945 | | - | |
| 1964 | + | |
1946 | 1965 | | |
1947 | 1966 | | |
1948 | 1967 | | |
| |||
0 commit comments