Skip to content

Instantly share code, notes, and snippets.

View lauridskern's full-sized avatar
💭
🐙

Laurids Kern lauridskern

💭
🐙
View GitHub Profile
@lauridskern
lauridskern / withExpoP3.ts
Created March 10, 2025 11:36
Expo config plugin to enable P3 colors
const { withAppDelegate } = require("expo/config-plugins");
const {
mergeContents,
} = require("@expo/config-plugins/build/utils/generateCode");
const withExpoP3 = (config) => {
return withAppDelegate(config, (config) => {
if (
config.modResults.language === "objc" ||
config.modResults.language === "objcpp"