Skip to content
Prev Previous commit
Next Next commit
chore: types improvement
  • Loading branch information
NathanWalker committed Sep 5, 2026
commit a20cf52e2312603d4c2730bb04f3f3dd3130b7b1
6 changes: 0 additions & 6 deletions packages/core/utils/native-helper-for-android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,6 @@ interface ISystemColor {
}
const systemColors = new WeakMap<androidx.appcompat.app.AppCompatActivity, ISystemColor>();

/**
* Re-applies the activity's edge-to-edge styling. The system bar icon
* appearance is decided from the theme at the time the style is applied, so
* an activity that survives a dark-mode switch keeps the old icons until this
* runs again.
*/
export function refreshEdgeToEdge(activity: androidx.appcompat.app.AppCompatActivity): void {
if (!activity) {
return;
Expand Down
7 changes: 7 additions & 0 deletions packages/core/utils/native-helper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ export const android: {
* @param options Options to set status bar color.
*/
setStatusBarColor(options?: { activity?: androidx.appcompat.app.AppCompatActivity; lightColor?: Color; darkColor?: Color }): void;
/**
* Re-applies the activity's edge-to-edge styling. The system bar icon
* appearance is decided from the theme at the time the style is applied, so
* an activity that survives a dark-mode switch keeps the old icons until this
* runs again.
*/
refreshEdgeToEdge(activity: androidx.appcompat.app.AppCompatActivity): void;
/**
* Enables edge-to-edge navigation for the provided activity.
* @param activity The activity to enable edge-to-edge navigation for.
Expand Down
Loading