File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 6
6
* @flow
7
7
*/
8
8
9
- import React , { Component } from 'react' ;
9
+ import React , { Component } from 'react' ;
10
10
import {
11
11
AppRegistry ,
12
12
StyleSheet ,
@@ -47,7 +47,7 @@ export default class Example extends Component {
47
47
< TouchableHighlight
48
48
underlayColor = { '#CFD8DC' }
49
49
onPress = { ( ) => this . openDefaultCustomTabs ( ) }
50
- style = { { marginTop : 8 } } >
50
+ style = { { marginTop : 8 } } >
51
51
< Text style = { styles . link } >
52
52
https://www.google.com
53
53
</ Text >
@@ -58,7 +58,7 @@ export default class Example extends Component {
58
58
< TouchableHighlight
59
59
underlayColor = { '#CFD8DC' }
60
60
onPress = { ( ) => this . errorOccur ( ) }
61
- style = { { marginTop : 8 } } >
61
+ style = { { marginTop : 8 } } >
62
62
< Text style = { styles . link } >
63
63
https://www.google.com
64
64
</ Text >
Original file line number Diff line number Diff line change 6
6
* @flow
7
7
*/
8
8
9
- import React , { Component } from 'react' ;
9
+ import React , { Component } from 'react' ;
10
10
import {
11
11
AppRegistry ,
12
12
StyleSheet ,
13
13
Text ,
14
14
TouchableHighlight ,
15
15
View
16
16
} from 'react-native' ;
17
- import { CustomTabs } from 'react-native-custom-tabs' ;
17
+ import { CustomTabs } from 'react-native-custom-tabs' ;
18
18
19
19
export default class Example extends Component {
20
20
render ( ) {
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- import { Platform } from 'react-native' ;
7
+ import { Platform } from 'react-native' ;
8
8
import ChromeIOS from './src/ChromeIOS' ;
9
9
import CustomTabsAndroid from './src/CustomTabsAndroid' ;
10
- import { ANIMATIONS_SLIDE , ANIMATIONS_FADE } from './src/TabOption' ;
10
+ import { ANIMATIONS_SLIDE , ANIMATIONS_FADE } from './src/TabOption' ;
11
11
12
- import type { TabOption as _TabOption } from './src/TabOption' ;
12
+ import type { TabOption as _TabOption } from './src/TabOption' ;
13
13
14
14
export type TabOption = _TabOption ;
15
15
16
16
const CustomTabs = Platform . OS === 'android' ? CustomTabsAndroid : ChromeIOS ;
17
- export { CustomTabs , ANIMATIONS_SLIDE , ANIMATIONS_FADE } ;
17
+ export { CustomTabs , ANIMATIONS_SLIDE , ANIMATIONS_FADE } ;
Original file line number Diff line number Diff line change 5
5
*/
6
6
'use strict' ;
7
7
8
- import { NativeModules } from 'react-native' ;
9
- import type { TabOption } from './TabOption' ;
8
+ import { NativeModules } from 'react-native' ;
9
+ import type { TabOption } from './TabOption' ;
10
10
11
11
const ChromeManager = NativeModules . DBChromeManager ;
12
12
@@ -22,7 +22,7 @@ export default class ChromeIOS {
22
22
* @param url the Uri to be opened.
23
23
* @param option the Option in iOS is ignored
24
24
*/
25
- static openURL ( url :string , option :TabOption = { } ) :Promise < boolean > {
25
+ static openURL ( url : string , option : TabOption = { } ) : Promise < boolean > {
26
26
return ChromeManager . openURL ( url )
27
27
}
28
28
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
'use strict' ;
7
7
8
- import { NativeModules } from 'react-native' ;
9
- import type { TabOption } from './TabOption' ;
8
+ import { NativeModules } from 'react-native' ;
9
+ import type { TabOption } from './TabOption' ;
10
10
11
11
const CustomTabsManager = NativeModules . CustomTabsManager ;
12
12
@@ -22,7 +22,7 @@ export default class CustomTabsAndroid {
22
22
* @param url the Uri to be opened.
23
23
* @param option the Option to customize Custom Tabs of look & feel.
24
24
*/
25
- static openURL ( url :string , option :TabOption = { } ) :Promise < boolean > {
25
+ static openURL ( url : string , option : TabOption = { } ) : Promise < boolean > {
26
26
return CustomTabsManager . openURL ( url , option )
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -43,22 +43,22 @@ export type TabOption = {
43
43
*
44
44
* {@link http://d.android.com/reference/android/graphics/Color.html#parseColor(java.lang.String) Color.parseColor(String)}
45
45
*/
46
- toolbarColor ?: string ;
46
+ toolbarColor ?: string ;
47
47
48
48
/**
49
49
* Enables the url bar to hide as the user scrolls down on the page.
50
50
*/
51
- enableUrlBarHiding ? : boolean ;
51
+ enableUrlBarHiding ? : boolean ;
52
52
53
53
/**
54
54
* Sets whether the title should be shown in the custom tab.
55
55
*/
56
- showPageTitle ? : boolean ;
56
+ showPageTitle ? : boolean ;
57
57
58
58
/**
59
59
* Whether to add a default shared items of the menu.
60
60
*/
61
- enableDefaultShare ? : boolean ;
61
+ enableDefaultShare ? : boolean ;
62
62
63
63
/**
64
64
* Sets the exit and start animations.
@@ -69,12 +69,12 @@ export type TabOption = {
69
69
* @see ANIMATIONS_FADE
70
70
* @see ANIMATIONS_SLIDE
71
71
*/
72
- animations ? : Animations ;
72
+ animations ? : Animations ;
73
73
74
74
/**
75
75
* Sets any custom headers that should be used.
76
76
*/
77
- headers ? : Object ;
77
+ headers ? : Object ;
78
78
79
79
/**
80
80
* Workaround that Custom Tabs doesn't close on redirecting back to app scheme.
You can’t perform that action at this time.
0 commit comments