- Export a dedicated typed function for Expo dynamic configuration (
app.config.ts):
import type { ConfigContext, ExpoConfig } from "expo/config";
import bootsplash from "react-native-bootsplash/expo"; // use `require` in app.config.js
export default ({ config }: ConfigContext): ExpoConfig => ({
// …
plugins: [
bootsplash({
logo: "./assets/logo.png",
logoWidth: 100,
background: "#f5fcff",
// …
}),
],
});