expo-system-ui
Version:
Interact with system UI elements
20 lines (15 loc) • 774 B
text/typescript
import { ConfigPlugin, createRunOncePlugin, withPlugins } from 'expo/config-plugins';
import { withAndroidRootViewBackgroundColor } from './withAndroidRootViewBackgroundColor';
import { withAndroidUserInterfaceStyle } from './withAndroidUserInterfaceStyle';
import { withIosRootViewBackgroundColor } from './withIosRootViewBackgroundColor';
import { withIosUserInterfaceStyle } from './withIosUserInterfaceStyle';
const pkg = require('expo-system-ui/package.json');
const withSystemUI: ConfigPlugin = (config) => {
return withPlugins(config, [
withAndroidRootViewBackgroundColor,
withIosRootViewBackgroundColor,
withAndroidUserInterfaceStyle,
withIosUserInterfaceStyle,
]);
};
export default createRunOncePlugin(withSystemUI, pkg.name, pkg.version);