Skip to content

Conversation

@mkhazov
Copy link

@mkhazov mkhazov commented Nov 8, 2018

PR to origin repo: CRAlpha#210

WKWebview does not trigger onProgress and onNavigationStateChange when navigation occurs in SPA.
The issue is solved by adding key-value observers for canGoBack and canGoForward values and passing them to corresponding functions passed as props from React.

<WKWebview
  onCanGoBackChange={ (canGoBack: boolean) => {} }
  onCanGoForwardChange={ (canGoForward: boolean) => {} }
/>

@mkhazov mkhazov self-assigned this Nov 8, 2018
@mkhazov mkhazov requested review from Enet and pmyagkov November 8, 2018 15:12
@Enet
Copy link

Enet commented Nov 8, 2018

Please don't forget to create PR and add comment on stack overflow.

@mkhazov mkhazov changed the base branch from master to FRO-1728-webview November 8, 2018 15:59
@mkhazov mkhazov merged commit 07a006f into FRO-1728-webview Nov 8, 2018
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.

4 participants