-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[sdk] Remove uses of UIWebView #5578
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
Conversation
1c159f1
to
afb5b6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving so we can start versioning and cut the release branch but left some comments for requested changes.
[window addSubview:_containerView]; | ||
|
||
UM_WEAKIFY(self); | ||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this delay waiting for? Is it something we can wait for explicitly rather than hoping that 100ms is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find a better way to trigger WKWebView
's rendering. Without the delay the only things that are rendered are div
s, no text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added small explanatory comment
https://github.com/expo/expo/pull/5578/files#diff-b21043019b44ad078174d6a97c441b38R41-R42
afb5b6b
to
bd05e1e
Compare
Why
Otherwise Apple may reject our apps.
How
Reimplemented
expo-print
functionality usingWKWebView
.x-ref: expo/react-native#17
Test Plan
NCL Print screen looks ok.