INNER CODE UNIT · TypeScript
filteredChildren
maplibre/maplibre-react-native · package/src/utils/index.ts:91
const filteredChildren = foundChildren.filter((child) => !!child);
return Children.map(filteredChildren, (child) =>
cloneElement(child, propsToAdd),
);
}
export function resolveImagePath(imageRef: ImageSourcePropType): string {
const res = Image.resolveAssetSource(imageRef);
return res.uri;
}
export function toJSONString(json: object | string = ""): string {
return JSON.stringify(json);
}