@devlander/expo-app-config
Version:
A package to help with deployment of expo applications for different environments
10 lines (9 loc) • 635 B
TypeScript
/**
* Recursively applies relative path conversion to all asset paths in a configuration object.
* This function iterates through each property of the object. If the property is a string
* containing '/assets', it converts it using `convertAbsolutePathToRelative`. If the property
* is an object or an array, it recursively applies the same logic to its properties or elements.
* @param {object} config - The configuration object to be processed.
* @param {string} [basePath=''] - The base path for recursion, used for nested objects.
*/
export declare function applyRelativePathsToConfig(config: any, basePath?: string): void;