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
32
32
33
33
#### Android
34
34
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
-
48
35
If you want to change the dependency version of this library, add the necessary properties to ** root** ` build.gradle ` .
49
36
50
37
```
@@ -70,10 +57,10 @@ ref. https://developer.apple.com/documentation/uikit/uiapplication/1622952-canop
70
57
71
58
## Usage
72
59
73
- Open the URL as ` Linking ` of React Native.
60
+ Open the URL like ` Linking ` of React Native.
74
61
75
62
``` javascript
76
- CustomTabs .openURL (' https://www.google.com' ).then (( launched : {boolean}) => {
63
+ CustomTabs .openURL (' https://www.google.com' ).then (launched => {
77
64
console .log (` Launched custom tabs: ${ launched} ` );
78
65
}).catch (err => {
79
66
console .error (err)
@@ -109,7 +96,7 @@ CustomTabs.openURL(url, {
109
96
headers: {
110
97
" my-custom-header" : " my custom header value"
111
98
},
112
- forceCloseOnRedirection: true
99
+ forceCloseOnRedirection: true ,
113
100
});
114
101
```
115
102
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
2
3
+ rootProject. allprojects {
4
+ repositories {
5
+ maven { url " https://jitpack.io" }
6
+ }
7
+ }
3
8
4
9
def getRootExt (name , fallback ) {
5
10
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 {
22
22
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
23
23
url " $projectDir /../../node_modules/react-native/android"
24
24
}
25
- maven { url " https://jitpack.io" }
26
25
}
27
26
}
28
27
You can’t perform that action at this time.
0 commit comments