You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome Custom Tabs for React Native. Custom Tabs is supported only Chrome for Android. For this reason, the interface is the same, but the behavior is following:
4
+
[Chrome Custom Tabs](https://developer.chrome.com/multidevice/android/customtabs) for React Native.
5
+
Custom Tabs is supported only for Android, so the behavior on each platform is bellow.
5
6
6
7
* Android
7
8
If Chrome is installed, open the URL in Chrome that you have customized some of the look & feel. If it is not installed, open in other browser.
8
9
9
10
* iOS
10
11
If Chrome is installed, open the URL in it. If it is not installed, open in Safari.
11
12
12
-
Customization and detailed behavior refer to the Usage.
13
+
Customization and detailed behavior refer to the [Usage](#Usage).
13
14
14
15
## Installation
15
16
@@ -25,7 +26,7 @@ rnpm link
25
26
26
27
#### Android
27
28
28
-
In Android, Add it in your **root**`build.gradle` at the end of repositories:
29
+
In Android, Add it in your **root**`build.gradle`([e.g. example](https://github.com/droibit/react-native-custom-tabs/blob/develop/example/android/build.gradle)) at the end of repositories:
You can customize the look & feel in Android. The following option is ignored in iOS.
83
84
@@ -92,16 +93,16 @@ CustomTabs.openURL(url, {
92
93
enableUrlBarHiding:true,
93
94
showPageTitle:true,
94
95
enableDefaultShare:true,
95
-
//For value, specify only full qualifier(package:anim/name) or only resource name.
96
-
//In the case of the resource name, the module complements application package.
96
+
//Specify full animation resource identifier(package:anim/name)
97
+
//or only resource name(in case of animation bundled with app).
97
98
animations: {
98
99
startEnter:'slide_in_bottom',
99
100
startExit:'slide_out_bottom',
100
101
endEnter:'slide_in_bottom',
101
102
endExit:'slide_out_bottom',
102
103
},
103
-
//or
104
-
animations:ANIMATIONS_SLIDE, //or ANIMATIONS_FADE
104
+
//And supports SLIDE and FADE as default animation.
105
+
//animations: ANIMATIONS_SLIDEor ANIMATIONS_FADE.
105
106
headers: {
106
107
'my-custom-header':'my custom header value'
107
108
},
@@ -122,13 +123,14 @@ The option to support:
122
123
|forceCloseOnRedirection|boolean|undefined|Workaround that Custom Tabs doesn't close on redirecting back to app scheme.([#11](https://github.com/droibit/react-native-custom-tabs/pull/11))|
123
124
124
125
125
-
`undefined` property is the default behavior of the Custom Tabs.
126
+
`undefined` property is default behavior of the Custom Tabs.
126
127
127
128
Customize and default look & feel.
128
129

129
130
130
131
## License
131
132
133
+
Copyright (C) 2015 The Android Open Source Project
132
134
Copyright (C) 2016 Shinya Kumagai
133
135
134
136
Licensed under the Apache License, Version 2.0 (the "License");
0 commit comments