splash
Controls the native launch screen: keep it up while the app loads, hide it, or pick the look of the next launch.
Verwendung
Read the native splash layout.
// Read the native splash layout.
import { splash } from 'kuito';
const layout = splash.layout(); // null without a splash
if (layout) console.log(layout.logo.y + layout.logo.height, layout.brand?.width);Exporte 7
Methoden, Konstanten und Typen, die dieser native Namespace bereitstellt.
function
layoutWhere the splash draws its logo and brand; null when the app has no splash.typeSplashFrameA rectangle of the window, in points (iOS) and dp (Android).typeSplashLayoutWhere the launch screen draws its logo and brand.functionholdKeeps the splash up after the first screen, until hide.functionhideHides the splash once the views the app rendered so far are on screen,
at once or with a fade.valuevisibleWhether the native splash is still up; watched, it turns false once it is gone.valuevariantThe variant the next launch shows, or null for the default look; it starts
as the one this launch showed.Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.