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

WebView has been removed from React Native #14

Open
alexstoyanov opened this issue Nov 4, 2019 · 3 comments
Open

WebView has been removed from React Native #14

alexstoyanov opened this issue Nov 4, 2019 · 3 comments

Comments

@alexstoyanov
Copy link

I have been using react-native-azure-ad-2 for a while without a problem but for some time a crash appears when using the library. I am attaching a screenshot of the issue. You should import WebView from different place now.
Screenshot 2019-11-04 at 12 08 00

@ravihani
Copy link

ravihani commented Feb 8, 2020

I am facing the same issue. Can't get around it even after installing npm i react-native-webview.

Could someone help how to resolve this?

@Nafets94
Copy link

Nafets94 commented Feb 8, 2020

@raviteja1982

npm install --save react-native-webview

Go to AzureLoginView.js and add import { WebView } from 'react-native-webview'; Also make sure you are not importing it also from react-native like import {WebView} from 'react-native';

This should do the trick.

@ravihani
Copy link

ravihani commented Feb 8, 2020

I ran into another issue but that's totally unrelated to this. Your suggestion worked. Thanks @Nafets94

mebinum added a commit that referenced this issue Sep 30, 2021
Auth.js
- Update Auth.js to use URLSearchParams

Code lint change to AzureInstance

AzureLoginView
- Refactor _handleTokenRequest to use async format

Fixed Issues #22, #14
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

No branches or pull requests

3 participants