Commit eea4fe4
committed
Target Android 16 (API level 36)
Google Play rejects app updates that target below API 36 after Aug 30, 2026.
Bumping compileSdk and targetSdk to 36 is the whole compliance change, but
API 36 also enables predictive back by default, and Android then stops
calling onBackPressed or dispatching KEYCODE_BACK. React Native 0.79's
ReactActivity only overrides onBackPressed and registers no
OnBackInvokedCallback, so every BackHandler listener would go dead:
react-navigation's back handling, EdgeModal dismissal, and the
useBackButtonToast exit guard. Opt out of predictive back to keep the back
button behaving as it does today.
React Native 0.86 ships an OnBackPressedCallback shim for this and moves to
AGP 8.12, so both the opt-out and the compileSdk warning suppression come
back out with that upgrade.1 parent 38c7621 commit eea4fe4
4 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments