Closed saurabhkanswal closed 3 years ago
=>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
import {Linking, Alert} from 'react-native'; import {InAppBrowser} from 'react-native-inappbrowser-reborn';
export const openLink = async ({url}) => { try { // const url = 'https://www.proyecto26.com' if (await InAppBrowser.isAvailable()) { const result = await InAppBrowser.open(url, { // Android Properties showTitle: true, toolbarColor: '#F7A828', secondaryToolbarColor: 'black', navigationBarColor: 'black', navigationBarDividerColor: 'white', enableUrlBarHiding: true, enableDefaultShare: true, forceCloseOnRedirection: false,
}); Alert.alert(JSON.stringify(result)); } else Linking.openURL(url);
} catch (error) { console.log(error.message); } };
<============================================================
the pop shows when I redirect back to my app by clicking on the close button. Any idea what Iam doing wrong.
Try removing the alert from your code 😅
thanks, man sometimes I do a silly mistake
No problem, me too 😂
=>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
import {Linking, Alert} from 'react-native'; import {InAppBrowser} from 'react-native-inappbrowser-reborn';
export const openLink = async ({url}) => { try { // const url = 'https://www.proyecto26.com' if (await InAppBrowser.isAvailable()) { const result = await InAppBrowser.open(url, { // Android Properties showTitle: true, toolbarColor: '#F7A828', secondaryToolbarColor: 'black', navigationBarColor: 'black', navigationBarDividerColor: 'white', enableUrlBarHiding: true, enableDefaultShare: true, forceCloseOnRedirection: false,
} catch (error) { console.log(error.message); } };
<============================================================
the pop shows when I redirect back to my app by clicking on the close button. Any idea what Iam doing wrong.