MCPcopy
hub / github.com/zoontek/react-native-bootsplash / withGenericAssets

Function withGenericAssets

src/extras/expo.ts:307–320  ·  view source on GitHub ↗
(expoConfig, rawProps)

Source from the content-addressed store, hash-verified

305 ]);
306
307const withGenericAssets: ConfigPlugin = (expoConfig, rawProps) =>
308 Expo.withDangerousMod(expoConfig, [
309 expoConfig.platforms?.includes("ios") ? "ios" : "android",
310 async (config) => {
311 const { projectRoot } = config.modRequest;
312 const props = await transformProps(projectRoot, rawProps);
313 const addon = requireAddon(props);
314
315 await writeGenericAssets({ props });
316 await addon?.writeGenericAssets({ props });
317
318 return config;
319 },
320 ]);
321
322export const withBootSplash = Expo.createRunOncePlugin<
323 (Partial<BootSplashPluginConfig> & { logo: string }) | undefined

Callers

nothing calls this directly

Calls 3

transformPropsFunction · 0.90
requireAddonFunction · 0.90
writeGenericAssetsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…