1import { ExpoConfig } from '@expo/config';
2
3const withCustom = (config, props) => {
4  config.name = props?.name ?? 'fallback-name';
5  return config;
6};
7
8export default (): ExpoConfig => {
9  const expoConfig = {
10    plugins: ['./my-plugin', [withCustom, { name: 'custom-name' }]],
11  };
12  return expoConfig as any;
13};
14