-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
feat(android): implement incognito mode #455
base: develop
Are you sure you want to change the base?
Conversation
const [statusBarStyle] = useState<StatusBarStyle>('dark-content'); | ||
|
||
useEffect(() => { | ||
InAppBrowser.mayLaunchUrl('https://reactnative.dev', []); | ||
InAppBrowser.mayLaunchUrl('https://login.coinbase.com', []); |
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.
@renanmav hey bro, can you use react native website instead please?
incognito: true, | ||
}; | ||
console.log('openLink -> options', options); | ||
const result = await InAppBrowser.openAuth(url, url, options); |
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 utility function is just an example for opening a external link? Please use another function for that openAuth example! 🙏
@@ -49,12 +49,13 @@ | |||
"@babel/eslint-parser": "^7.18.9", | |||
"@react-native-community/eslint-config": "^3.0.3", | |||
"eslint": "^8.20.0", | |||
"flow-bin": "^0.183.1", | |||
"flow-bin": "^0.135.0", |
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.
Maybe we can remove flow now because TypeScript is used by default now 🤔
@@ -18,15 +18,12 @@ import type { | |||
AuthSessionResult, | |||
InAppBrowserOptions, | |||
} from './types'; | |||
import type { EventSubscription } from 'react-native/Libraries/vendor/emitter/EventEmitter'; |
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.
So it's not going to work with old versions of RN 🤔
@@ -141,6 +140,7 @@ export async function openAuthSessionPolyfillAsync( | |||
!_redirectHandler, | |||
'InAppBrowser.openAuth is in a bad state. _redirectHandler is defined when it should not be.' | |||
); | |||
console.log('openAuthSessionPolyfillAsync', options); |
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.
Please remove logs from source code
PR Checklist
What is the current behavior?
What is the new behavior?
Fixes/Implements/Closes #[Issue Number].