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

Rename RCTWKWebView to CRAWKWebView to avoid symbol clash with RN 0.57 #195

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

headlessme
Copy link
Contributor

Fixes #194

…NSHTTPURLResponse, so headers and status code might not be available
@kirillplatonov
Copy link

We really need this in master since it's not possible to upgrade to RN 0.57. And RN < 0.57 doesn't work with Xcode 10

@oferRounds
Copy link

oferRounds commented Sep 27, 2018

+1

if([navigationResponse.response isKindOfClass:[NSHTTPURLResponse class]]){
headers = ((NSHTTPURLResponse *)navigationResponse.response).allHeaderFields;
statusCode = ((NSHTTPURLResponse *)navigationResponse.response).statusCode;
}

Choose a reason for hiding this comment

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

How is this part related to the symbol clash and rename?

Copy link

Choose a reason for hiding this comment

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

RN 0.57 duplicate class RCTWebView RCTWebViewManager. Error will occur when Xcode build.
image

Choose a reason for hiding this comment

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

I know about the duplicate symbol error. But the specific lines of code I commented on do not relate to those symbols. It looks like a different commit accidentally came along for the ride.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this happens to be a fix for #199

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this happens to be a fix for #199

@insraq
Copy link
Contributor

insraq commented Sep 30, 2018

I am on vacation now and I will merge it after I am back

@insraq insraq merged commit 692523c into CRAlpha:master Oct 8, 2018
@insraq
Copy link
Contributor

insraq commented Oct 8, 2018

on npm now: 2.0.0

I have also renamed files and updated the example project to RN 0.57.

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.

7 participants