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

Function withAndroidAssets

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

Source from the content-addressed store, hash-verified

35);
36
37const withAndroidAssets: ConfigPlugin = (expoConfig, rawProps) =>
38 Expo.withDangerousMod(expoConfig, [
39 "android",
40 async (config) => {
41 const { platformProjectRoot, projectRoot } = config.modRequest;
42 const props = await transformProps(projectRoot, rawProps);
43 const addon = requireAddon(props);
44
45 const androidOutputPath = path.resolve(
46 platformProjectRoot,
47 "app",
48 "src",
49 "main",
50 "res",
51 );
52
53 await writeAndroidAssets({ androidOutputPath, props });
54 await addon?.writeAndroidAssets({ androidOutputPath, props });
55
56 return config;
57 },
58 ]);
59
60const withAndroidManifest: ConfigPlugin = (expoConfig) =>
61 Expo.withAndroidManifest(expoConfig, (config) => {

Callers

nothing calls this directly

Calls 3

transformPropsFunction · 0.90
requireAddonFunction · 0.90
writeAndroidAssetsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…