Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iOS Image.getSizeWithHeaders #29338

Closed
wants to merge 1 commit into from
Closed

Fix iOS Image.getSizeWithHeaders #29338

wants to merge 1 commit into from

Conversation

PaitoAnderson
Copy link
Contributor

@PaitoAnderson PaitoAnderson commented Jul 10, 2020

Fixes #28632

Summary

Image.getSizeWithHeaders() was not working as intended on iOS.

Changelog

[iOS] [Fixed] - Fixed headers in Image.getSizeWithHeaders.

Test Plan

Used RNTester and an Image URL requiring a Bearer token to test.

Code:
Screen Shot 2020-07-10 at 3 00 58 PM

With Bearer Token:
Screen Shot 2020-07-10 at 3 02 48 PM

Without Bearer Token:
Screen Shot 2020-07-10 at 3 04 32 PM

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 6,760,779 0
android hermes armeabi-v7a 6,423,738 0
android hermes x86 7,148,430 0
android hermes x86_64 7,038,344 0
android jsc arm64-v8a 8,932,450 0
android jsc armeabi-v7a 8,587,804 0
android jsc x86 8,763,223 0
android jsc x86_64 9,338,773 0

Base commit: 120ff7c

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 120ff7c

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 10, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PeteTheHeat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@PeteTheHeat
Copy link
Contributor

Thanks for fixing this!

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @PaitoAnderson in 0bcc686.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jul 28, 2020
@PaitoAnderson
Copy link
Contributor Author

@PeteTheHeat Thanks for merging 🇨🇦

tvand08 pushed a commit to tvand08/react-native that referenced this pull request Aug 11, 2020
Summary:
Fixes facebook#28632

Image.getSizeWithHeaders() was not working as intended on iOS.

## Changelog

[iOS] [Fixed] - Fixed headers in `Image.getSizeWithHeaders`.

Pull Request resolved: facebook#29338

Test Plan:
Used RNTester and an Image URL requiring a Bearer token to test.

Code:
<img width="720" alt="Screen Shot 2020-07-10 at 3 00 58 PM" src="https://user-images.githubusercontent.com/4108718/87189376-850cba00-c2be-11ea-851c-d9fa37d88de4.png">

With Bearer Token:
<img width="456" alt="Screen Shot 2020-07-10 at 3 02 48 PM" src="https://user-images.githubusercontent.com/4108718/87189349-7de5ac00-c2be-11ea-8d82-c74cae6d904b.png">

Without Bearer Token:
<img width="559" alt="Screen Shot 2020-07-10 at 3 04 32 PM" src="https://user-images.githubusercontent.com/4108718/87189458-aff70e00-c2be-11ea-82b7-34a14ec465f1.png">

Reviewed By: cpojer

Differential Revision: D22783037

Pulled By: PeteTheHeat

fbshipit-source-id: 3ad5026e71607c61d42316784844c5295bc1dcae
kelset pushed a commit that referenced this pull request Sep 29, 2020
Summary:
Fixes #28632

Image.getSizeWithHeaders() was not working as intended on iOS.

## Changelog

[iOS] [Fixed] - Fixed headers in `Image.getSizeWithHeaders`.

Pull Request resolved: #29338

Test Plan:
Used RNTester and an Image URL requiring a Bearer token to test.

Code:
<img width="720" alt="Screen Shot 2020-07-10 at 3 00 58 PM" src="https://user-images.githubusercontent.com/4108718/87189376-850cba00-c2be-11ea-851c-d9fa37d88de4.png">

With Bearer Token:
<img width="456" alt="Screen Shot 2020-07-10 at 3 02 48 PM" src="https://user-images.githubusercontent.com/4108718/87189349-7de5ac00-c2be-11ea-8d82-c74cae6d904b.png">

Without Bearer Token:
<img width="559" alt="Screen Shot 2020-07-10 at 3 04 32 PM" src="https://user-images.githubusercontent.com/4108718/87189458-aff70e00-c2be-11ea-82b7-34a14ec465f1.png">

Reviewed By: cpojer

Differential Revision: D22783037

Pulled By: PeteTheHeat

fbshipit-source-id: 3ad5026e71607c61d42316784844c5295bc1dcae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image.getSizeWithHeaders not working on iOS RN 0.62
5 participants