- Export a dedicated typed function for Expo dynamic configuration (
app.config.ts):
import type { ConfigContext, ExpoConfig } from "expo/config";
import localize from "react-native-localize/expo"; // use `require` in app.config.js
export default ({ config }: ConfigContext): ExpoConfig => ({
plugins: [
localize({
locales: ["en", "fr"], // or { android: ["en"], ios: ["en", "fr"] }
}),
],
});