Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫
Something went wrong. Try again.
798 B · 25 lines
JavaScript
1234567891011121314151617181920212223242526/** * @file Set accent color to primaryColor from app.config.js. * This way we get a sane default color for spinners, text inputs, etc. */
const {withAndroidStyles, AndroidConfig} = require('expo/config-plugins')
module.exports = function withAndroidStylesAccentColorPlugin(appConfig) { return withAndroidStyles(appConfig, function (decoratedAppConfig) { try { decoratedAppConfig.modResults = AndroidConfig.Styles.assignStylesValue( decoratedAppConfig.modResults, { add: true, parent: AndroidConfig.Styles.getAppThemeGroup(), name: 'colorAccent', value: '@color/colorPrimary', }, ) } catch (e) { console.error(`withAndroidStylesAccentColorPlugin failed`, e) } return decoratedAppConfig })}