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

"onNavigationStateChange" don't work. #22864

Closed
liweijieok opened this issue Jan 4, 2019 · 2 comments
Closed

"onNavigationStateChange" don't work. #22864

liweijieok opened this issue Jan 4, 2019 · 2 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@liweijieok
Copy link

liweijieok commented Jan 4, 2019

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 30.36 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.3.0 - ~/.nvm/versions/node/v9.3.0/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v9.3.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
API Levels: 22, 23, 24, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.2, 28.0.3
System Images: android-16 | Google APIs Intel x86 Atom, android-23 | Intel x86 Atom, android-23 | Google APIs ARM EABI v7a, android-23 | Google APIs Intel x86 Atom, android-24 | Intel x86 Atom, android-24 | Google APIs ARM EABI v7a, android-25 | Google APIs ARM EABI v7a, android-26 | Google Play Intel x86 Atom, android-27 | Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
react-native-toast: 1.0.1

Description

onNavigationStateChange method of WebView Component is not work in iOS when the webside is a SPA(single-page-application),so i can not control the web page is close or back because of i need to record the webside record whether it can go back or forward . When i open SPA in safari ,it can move forward and backward normally. Also this method is work in android.

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@dulmandakh
Copy link
Contributor

WebView is deprecated in React Native, and will be removed in the future. Please use https://github.com/react-native-community/react-native-webview.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants