Skip to content

Commit

Permalink
Fix copypasta function documentation in ImageLoaderModule (#38029)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38029

# Changelog:
[Internal] -

A trivial fix - I was looking into some deeper issues with `Image.prefetch`, noticed that code docs were copypasted and incorrect.

Reviewed By: cipolleschi

Differential Revision: D46959350

fbshipit-source-id: 4e4196f9399d91402d9b206c20f2bbd0d1d0eb2a
  • Loading branch information
rshest authored and facebook-github-bot committed Jun 23, 2023
1 parent eb5f23c commit c34aabb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ private ImagePipeline getImagePipeline() {
/**
* Fetch the width and height of the given image.
*
* @param uriString the URI of the remote image to prefetch
* @param promise the promise that is fulfilled when the image is successfully prefetched or
* rejected when there is an error
* @param uriString the URI of the remote image
* @param promise the promise that is fulfilled when operation successfully completed or rejected
* when there is an error
*/
@ReactMethod
public void getSize(final String uriString, final Promise promise) {
Expand Down Expand Up @@ -139,10 +139,10 @@ protected void onFailureImpl(DataSource<CloseableReference<CloseableImage>> data
/**
* Fetch the width and height of the given image with headers.
*
* @param uriString the URI of the remote image to prefetch
* @param uriString the URI of the remote image
* @param headers headers send with the request
* @param promise the promise that is fulfilled when the image is successfully prefetched or
* rejected when there is an error
* @param promise the promise that is fulfilled when operation successfully completed or rejected
* when there is an error
*/
@ReactMethod
public void getSizeWithHeaders(
Expand Down

0 comments on commit c34aabb

Please sign in to comment.