react-native-custom-tabs icon indicating copy to clipboard operation
react-native-custom-tabs copied to clipboard

Please help, "openURL" function undefined

Open pakicoder123 opened this issue 8 years ago • 4 comments

Hi, I'm trying to test the functionality of this library, so I put CustomTabs.openUrl('https://www.google.com) like from the example in the readme inside of the ComponentWillMount function for one of my components. The app is giving the error "undefined is not a function "CustomTabs.openUrl...".

Details: I am importing the library like so: var CustomTabs = require( 'react-native-custom-tabs');

pakicoder123 avatar Aug 13 '17 09:08 pakicoder123

Have you followed all the installation steps?

Might be the way you're importing the CustomTabs component. Have you tried the following?

import { CustomTabs } from 'react-native-custom-tabs';

ataillefer avatar Aug 28 '17 09:08 ataillefer

I have the same problem only in iOS How can I fix it?

h-asadollahi avatar Mar 17 '18 07:03 h-asadollahi

Having the same problem too only with iOS. How do I fix this?

jermainedilao avatar May 13 '18 10:05 jermainedilao

I can't find any solution to this issue as well. im using android

jhekyll avatar Jun 22 '18 06:06 jhekyll