Usage

Validate a configuration in an app-development tool.

tsx
// 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);

Properties and methods 6

NameTypeRequiredDescription
orientation"default"Yes—
Default: 'default'
colorScheme"automatic"Yes—
Default: 'automatic'
statusBarStyle"auto"Yes—
Default: 'auto'
deploymentTarget"16.0"Yes—
Default: '16.0'
softInputMode"resize"Yes—
Default: 'resize'
minSdk26Yes—
Default: 26
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.