1.0.7 • Published 6 years ago

in-app-browser v1.0.7

Weekly downloads
12
License
ISC
Repository
-
Last release
6 years ago

ReactCustomTabs

react-native library

Open url by Safari(iOS) or Google Chrome CustomTabs(Android)

Installation

Step 1: Install npm package

npm install in-app-browser --save

Step 2: Config Android project

Add it in your root build.gradle at the end of repositories:

maven { url 'https://jitpack.io' }

Add the dependency

compile 'com.github.thaitv21:ReactCustomTabs:1.0.3'

In android/app/src/your_package/MainApplication.java, add package:

@Override
    
protected List<ReactPackage> getPackages() {

      return Arrays.<ReactPackage>asList(

          ...,

        new AndroidCustomTabsPackage()

      );

    }

Step 3: Config iOS project

You don't need config anything in iOS project

Step 4: Use this library

Import this library:

import {InAppBrowser} from 'in-app-browser'

Using:

InAppBrowser.openUrl(url)
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago