in-app-browser

1.0.7 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i in-app-browser

Weekly Downloads

14

Version

1.0.7

License

ISC

Unpacked Size

33.1 kB

Total Files

11

Last publish

Collaborators

  • thanthai21