Skip to content

Commit 375e1a7

Browse files
committed
Update README.md
1 parent 592adca commit 375e1a7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
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:
55

6-
* iOS
7-
If Chrome is installed, open the URL in it. If it is not installed, open in Safari.
8-
96
* Android
107
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.
118

9+
* iOS
10+
If Chrome is installed, open the URL in it. If it is not installed, open in Safari.
11+
1212
Customization and detailed behavior refer to the Usage.
1313

1414
## Installation
@@ -92,13 +92,13 @@ CustomTabs.openURL(url, {
9292
enableUrlBarHiding: true,
9393
showPageTitle: true,
9494
enableDefaultShare: true,
95-
// For value, specify only full qualifier or only resource name.
96-
// In the case of the resource name, the module complements the application package in java side.
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.
9797
animations: {
98-
startEnter: 'com.github.droibit.android.reactnative.customtabs.example:anim/slide_in_bottom',
99-
startExit: 'com.github.droibit.android.reactnative.customtabs.example:anim/slide_out_bottom',
100-
endEnter: 'com.github.droibit.android.reactnative.customtabs.example:anim/slide_in_bottom',
101-
endExit: 'com.github.droibit.android.reactnative.customtabs.example:anim/slide_out_bottom',
98+
startEnter: 'slide_in_bottom',
99+
startExit: 'slide_out_bottom',
100+
endEnter: 'slide_in_bottom',
101+
endExit: 'slide_out_bottom',
102102
},
103103
// or
104104
animations: ANIMATIONS_SLIDE, // or ANIMATIONS_FADE
@@ -117,7 +117,7 @@ The option to support:
117117
|enableUrlBarHiding|boolean|undefined|Enables the url bar to hide as the user scrolls down on the page.|
118118
|showPageTitle|boolean|undefined|Sets whether the title should be shown in the custom tab.|
119119
|enableDefaultShare|boolean|undefined|Whether to add a default shared items of the menu.|
120-
|animations|Object|undefined|Sets the exit and start animations. ANIMATIONS_FADE, ANIMATIONS_SLIDE or custom object with string properties `startEnter`, `startExit`, `endEnter` and `endExit` each defining an Android animation resource ID to use for the animations, such as `com.github.droibit.android.reactnative.customtabs:anim/slide_in_right`.|
120+
|animations|Object|undefined|Sets the exit and start animations. ANIMATIONS_FADE, ANIMATIONS_SLIDE or custom object with string properties `startEnter`, `startExit`, `endEnter` and `endExit` each defining an Android animation resource ID to use for the animations, such as `slide_in_right`.|
121121
|headers|Object|undefined|Sets any custom headers that should be used.|
122122
|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))|
123123

0 commit comments

Comments
 (0)