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

Function withIOSAssets

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

Source from the content-addressed store, hash-verified

192 });
193
194const withIOSAssets: ConfigPlugin = (expoConfig, rawProps) =>
195 Expo.withDangerousMod(expoConfig, [
196 "ios",
197 async (config) => {
198 const {
199 platformProjectRoot,
200 projectName = "",
201 projectRoot,
202 } = config.modRequest;
203
204 const props = await transformProps(projectRoot, rawProps);
205 const addon = requireAddon(props);
206 const iosOutputPath = path.resolve(platformProjectRoot, projectName);
207
208 await writeIOSAssets({ iosOutputPath, props });
209 await addon?.writeIOSAssets({ iosOutputPath, props });
210
211 return config;
212 },
213 ]);
214
215const withAppDelegate: ConfigPlugin = (expoConfig) =>
216 Expo.withAppDelegate(expoConfig, (config) => {

Callers

nothing calls this directly

Calls 3

transformPropsFunction · 0.90
requireAddonFunction · 0.90
writeIOSAssetsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…