Skip to content

Feat/cancel image#131

Draft
DaveyEke wants to merge 2 commits into
mrousavy:mainfrom
DaveyEke:feat/cancel-image
Draft

Feat/cancel image#131
DaveyEke wants to merge 2 commits into
mrousavy:mainfrom
DaveyEke:feat/cancel-image

Conversation

@DaveyEke
Copy link
Copy Markdown

This PR adds an isActive prop that cancels an image request if false and let's it go through if true

Example Usage:

import { useIsFocused } from '@react-navigation/native'

  function MyScreen() {
    const isFocused = useIsFocused()

    return (
      <NitroImage
        image={{ url }}
        isActive={isFocused}
        style={styles.image}
        resizeMode="cover"
      />
    )
  }
  

@DaveyEke DaveyEke marked this pull request as draft May 29, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant