[expo-image] Prefetch cacheKey

Please provide the following:

  1. SDK Version: 48.0.15
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I have a use-case that requires the cacheKey property for the <Image/> component in “expo-image”. Specifically, I have signed urls that are refreshed between sessions, but almost always reference the same image. I’d like to use Image.prefetch, but it doesn’t seem to have an option to specify a cacheKey. Are there any plans to implement in this future, or any good workarounds for it?

My current plan for a workaround is having an <Image/> component with an opacity of 0 that I swap out the source for. Would love to hear any potential other solutions to this problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.