react-native-chrome-custom-tabs
Installation
npm install --save react-native-chrome-custom-tabs
- Add the following to
android/settings.gradle
:
include ':ReactNativeChromeCustomTabs', ':app'
project(':ReactNativeChromeCustomTabs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-chrome-custom-tabs/android')
- Add
compile project(':ReactNativeChromeCustomTabs')
todependencies
inandroid/app/build.gradle
- Import and register the module in your
MainActivity.java
file:
// <-- Import
Usage
var ChromeCustomTabsClient = ; // Tell Chrome to preload a URLChromeCustomTabsClient; // Launch a Custom TabChromeCustomTabsClient;
License
MIT