-
Notifications
You must be signed in to change notification settings - Fork 0
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/wallet 424 wallet login #39
Conversation
quanvo298Wizeline
commented
Sep 5, 2024
•
edited
Loading
edited
- The react-native-webview-ios-cache-clear library is not supported on Expo Go, so I used the official function from "react-native/Libraries/Network/RCTNetworking" to clear network cookies.
- Additionally, I implemented a "sign-out request" in the WebView for logging out. This clears cookies via the response from the request instead of calling the logout API.
- I created the useInruptLogin hook and the LoginWebViewModal component to make the code cleaner and more readable, and to ensure that the WebView clears its cache when closed or logged out.
…al to make WebView do not unmounted when modal closed
…al to make WebView do not unmounted when modal closed
…al to make WebView do not unmounted when modal closed
metro.config.js
Outdated
@@ -29,6 +30,7 @@ module.exports = (() => { | |||
...resolver, | |||
assetExts: resolver.assetExts.filter((ext) => ext !== "svg"), | |||
sourceExts: [...resolver.sourceExts, "svg"], | |||
blacklistRE: exclusionList([/.*\.test\.tsx$/]), |
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.
Is this blacklist made redundant by #38?
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.
Actually no, my fix apparently didn't fix the issue (I apparently didn't re-generate the android
folder enough)
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.
#38 PR do not fix issue what I am facing when build code from latest code. This config are to fix issue as attachments:
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.
You're correct, I've applied your fix in #43.
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.
This looks a lot cleaner but I am unable to review properly today. @NSeydoux Can you review & test this on android (emulator and expo go) and also confirm that the IDP logout still happens?
…al to make WebView do not unmounted when modal closed
…al to make WebView do not unmounted when modal closed
…al to make WebView do not unmounted when modal closed
0128eed
to
85004e9
Compare
Did you find why the linter didn't report these issues? |