Closed sarvold closed 8 months ago
Same problem for me
Same here on Android
Same problem
Same issue. Looking for alternative at the moment =/
Why you are using this lib with Expo?
I ran into the same problem. After spending some hours searching for a solution, I ended up using Expo's in app browser https://docs.expo.dev/guides/linking/#in-app-browsers.
Hi, I found no solutions on the issues already reported. I'm using expo CLI.
Create Expo app, install react-native-inappbrowser, import InAppBrowser from 'react-native-inappbrowser-reborn'; and code something implementing it, e.g. including something like
if (await InAppBrowser.isAvailable()) {
. Start the expo app and test it on any device. Error thrown:[TypeError: Cannot read property 'isAvailable' of null]
If console loggingInAppBrowser
, it happens to be an object as follows:{"close": [Function close], "closeAuth": [Function closeAuth], "isAvailable": [Function isAvailable], "mayLaunchUrl": [Function mayLaunchUrl], "open": [Function open], "openAuth": [Function openAuth], "warmup": [Function warmup]}
Demo app: https://github.com/sarvold/inappBrowser-expo-app
Reproduces on Macs M2 on android and iOS, both emulators and devices with expo.