config.SETTING_DEFAULTS
The shells' own behavior: a setting left at its default writes nothing.
Verwendung
Validate a configuration in an app-development tool.
// Validate a configuration in an app-development tool.
import { resolveConfig, SETTING_DEFAULTS, IOS_BACKGROUND_MODES } from 'kuito/config';
const config = resolveConfig(
{
name: 'Notes',
ios: { bundleIdentifier: 'com.example.notes' },
android: { applicationId: 'com.example.notes' },
environments: { staging: { idSuffix: '.staging' } },
},
'/project/kuito.config.ts',
'staging',
);
console.log(config.ios.bundleIdentifier, config.splash, config.icon);
console.log(SETTING_DEFAULTS.minSdk, IOS_BACKGROUND_MODES);Eigenschaften und Methoden 6
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
orientation | "default" | Ja | — Standard: 'default' |
colorScheme | "automatic" | Ja | — Standard: 'automatic' |
statusBarStyle | "auto" | Ja | — Standard: 'auto' |
deploymentTarget | "16.0" | Ja | — Standard: '16.0' |
softInputMode | "resize" | Ja | — Standard: 'resize' |
minSdk | 26 | Ja | — Standard: 26 |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.