Thanks for your reply, Wodin. I had seen that page before. I know that things might be a bit different in “expo build” and EAS, but it seems weird that Expo Go has the expected blue color, but my EAS builds do not. I’ll post some stuff here.
If you think this could be an “issue”, maybe I should post it to GitHub.
The code below is just about the simplest Alert function possible, but even it has black OK button on EAS but blue in Expo Go.
const simpleTextAlert = () => Alert.alert('Any text can go here')
package.json dependencies
"@expo-google-fonts/montserrat": "^0.1.0",
"@react-native-async-storage/async-storage": "~1.15.0",
"@react-native-masked-view/masked-view": "0.2.6",
"@react-navigation/drawer": "^6.3.1",
"@react-navigation/material-bottom-tabs": "^6.1.1",
"@react-navigation/native": "^6.0.8",
"@react-navigation/stack": "^6.1.1",
"expo": "^44.0.4",
"expo-app-loading": "~1.3.0",
"expo-application": "~4.0.1",
"expo-av": "~10.2.0",
"expo-device": "~4.1.0",
"expo-font": "~10.0.4",
"expo-location": "~14.0.1",
"expo-speech": "~10.1.0",
"expo-splash-screen": "~0.14.1",
"expo-status-bar": "~1.2.0",
"expo-system-ui": "~1.1.0",
"expo-updates": "~0.11.6",
"firebase": "^9.1.3",
"react": "17.0.1",
"react-native": "0.64.3",
"react-native-gesture-handler": "~2.1.0",
"react-native-maps": "0.29.4",
"react-native-paper": "^4.11.2",
"react-native-reanimated": "^2.2.3",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1"
app.config.js
const IS_PREVIEW = process.env.APP_VARIANT === "preview";
export default {
owner: "*****",
name: IS_PREVIEW ? "******" : "*****",
slug: "*****",
description: "*****",
privacy: "unlisted",
platforms: [
"ios",
"android"
],
version: "*****",
orientation: "default",
backgroundColor: "#ffffff",
primaryColor: "*****",
icon: "./assets/icon.png",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#000000"
},
updates: {
fallbackToCacheTimeout: 5000
},
assetBundlePatterns: [
"**/*"
],
ios: {
bundleIdentifier: IS_PREVIEW ? "*****" : "*****",
buildNumber: "6",
supportsTablet: true,
infoPlist: {
"NSLocationWhenInUseUsageDescription": "*****"
}
},
androidStatusBar: {
barStyle: "light-content",
backgroundColor: "#000000",
translucent: false
},
android: {
package: IS_PREVIEW ? "*****" : "*****",
versionCode: 6,
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#ffffff"
},
permissions: [
"ACCESS_FINE_LOCATION"
],
config: {
googleMaps: {
apiKey: "*****"
}
}
}
}
eas.json
{
"cli": {
"version": ">= 0.48.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"releaseChannel": "staging",
"distribution": "internal",
"env": {
"APP_VARIANT": "preview"
}
},
"production": {
"releaseChannel": "prod-v1"
}
},
"submit": {
"production": {
"android": {
"serviceAccountKeyPath": "*****"
},
"ios": {
"ascAppId": "*****"
}
}
}
}