File tree Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,6 @@ react-native link react-native-custom-tabs
3232
3333#### Android
3434
35- In Android, Add it in your ** root** ` build.gradle ` at the end of repositories:
36-
37- ``` groovy
38- allprojects {
39- repositories {
40- ...
41- maven { url "https://jitpack.io" }
42- }
43- }
44- ```
45-
46- ref. [ example] ( https://github.com/droibit/react-native-custom-tabs/blob/develop/example/android/build.gradle#L25 )
47-
4835If you want to change the dependency version of this library, add the necessary properties to ** root** ` build.gradle ` .
4936
5037```
@@ -70,10 +57,10 @@ ref. https://developer.apple.com/documentation/uikit/uiapplication/1622952-canop
7057
7158## Usage
7259
73- Open the URL as ` Linking ` of React Native.
60+ Open the URL like ` Linking ` of React Native.
7461
7562``` javascript
76- CustomTabs .openURL (' https://www.google.com' ).then (( launched : {boolean}) => {
63+ CustomTabs .openURL (' https://www.google.com' ).then (launched => {
7764 console .log (` Launched custom tabs: ${ launched} ` );
7865}).catch (err => {
7966 console .error (err)
@@ -109,7 +96,7 @@ CustomTabs.openURL(url, {
10996 headers: {
11097 " my-custom-header" : " my custom header value"
11198 },
112- forceCloseOnRedirection: true
99+ forceCloseOnRedirection: true ,
113100});
114101```
115102
Original file line number Diff line number Diff line change 11apply plugin : " com.android.library"
22
3+ rootProject. allprojects {
4+ repositories {
5+ maven { url " https://jitpack.io" }
6+ }
7+ }
38
49def getRootExt (name , fallback ) {
510 return rootProject. ext. has(name) ? rootProject. ext. get(name) : fallback
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ allprojects {
2222 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2323 url " $projectDir /../../node_modules/react-native/android"
2424 }
25- maven { url " https://jitpack.io" }
2625 }
2726}
2827
You can’t perform that action at this time.
0 commit comments