UNPKG

901 BTypeScriptView Raw
1import { ExpoConfig } from '../Config.types';
2import { Document } from './Manifest';
3export declare const CONFIG_CHANGES_ATTRIBUTE = "android:configChanges";
4export declare const ON_CONFIGURATION_CHANGED = "\npublic class MainActivity extends ReactActivity {\n\n // Added automatically by Expo Config\n @Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n Intent intent = new Intent(\"onConfigurationChanged\");\n intent.putExtra(\"newConfig\", newConfig);\n sendBroadcast(intent);\n }\n";
5export declare function getUserInterfaceStyle(config: ExpoConfig): string;
6export declare function setUiModeAndroidManifest(config: ExpoConfig, manifestDocument: Document): Promise<Document>;
7export declare function addOnConfigurationChangedMainActivity(config: ExpoConfig, MainActivity: string): string;