Skip to content

feat: add onLoad prop#116

Open
DaveyEke wants to merge 2 commits intomrousavy:mainfrom
DaveyEke:feat/on-load-prop
Open

feat: add onLoad prop#116
DaveyEke wants to merge 2 commits intomrousavy:mainfrom
DaveyEke:feat/on-load-prop

Conversation

@DaveyEke
Copy link
Copy Markdown

Adds onLoad callback prop to <NitroImage> that fires when an image has been loaded and displayed.

Usage

<NitroImage
  image={{ url: 'https://example.com/photo.jpg' }}
  onLoad={() => console.log('loaded!')}
/>

Tested

- iOS: 
- Android: 

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.

2 participants