feat(android): edge to edge (#10774)

This commit is contained in:
Osei Fortune
2025-11-04 23:13:15 -04:00
committed by GitHub
parent 55d111c19d
commit 248ff4bcae
51 changed files with 1737 additions and 256 deletions

View File

@@ -2,7 +2,7 @@ import '../../globals';
import { setActivityCallbacks } from '.';
import { Application } from '../../application';
import { isEmbedded } from '../embedding';
import { enableEdgeToEdge } from '../../utils/native-helper-for-android';
const EMPTY_FN = () => {};
declare const com: any;
@@ -22,6 +22,7 @@ if (!isEmbedded()) {
// Set isNativeScriptActivity in onCreate.
// The JS constructor might not be called because the activity is created from Android.
this.isNativeScriptActivity = true;
enableEdgeToEdge(this);
if (!this._callbacks) {
setActivityCallbacks(this);
}
@@ -78,6 +79,7 @@ if (!isEmbedded()) {
// Set isNativeScriptActivity in onCreate.
// The JS constructor might not be called because the activity is created from Android.
activity.isNativeScriptActivity = true;
enableEdgeToEdge(this);
if (!activity._callbacks) {
setActivityCallbacks(activity);
}