← Code LabReact Native0/50 solved · 0%
Components · easy

8. Resolving image sources

Decide between a local asset id and a remote URI.

Write `resolveSource(input)` returning `{ uri: input }` if `input` is a string starting with `http`, otherwise returning `input` unchanged (treated as a local require id).
Required in your answer: startsWith(