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

feat(android): implement incognito mode #455

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

renanmav
Copy link

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

const [statusBarStyle] = useState<StatusBarStyle>('dark-content');

useEffect(() => {
InAppBrowser.mayLaunchUrl('https://reactnative.dev', []);
InAppBrowser.mayLaunchUrl('https://login.coinbase.com', []);
Copy link
Member

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);
Copy link
Member

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",
Copy link
Member

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';
Copy link
Member

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);
Copy link
Member

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

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.

2 participants