Skip to content

Commit f108cda

Browse files
committed
Apply formatter
1 parent be8287e commit f108cda

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

example/index.android.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @flow
77
*/
88

9-
import React, {Component} from 'react';
9+
import React, { Component } from 'react';
1010
import {
1111
AppRegistry,
1212
StyleSheet,
@@ -47,7 +47,7 @@ export default class Example extends Component {
4747
<TouchableHighlight
4848
underlayColor={'#CFD8DC'}
4949
onPress={() => this.openDefaultCustomTabs()}
50-
style={{marginTop: 8}}>
50+
style={{ marginTop: 8 }}>
5151
<Text style={styles.link}>
5252
https://www.google.com
5353
</Text>
@@ -58,7 +58,7 @@ export default class Example extends Component {
5858
<TouchableHighlight
5959
underlayColor={'#CFD8DC'}
6060
onPress={() => this.errorOccur()}
61-
style={{marginTop: 8}}>
61+
style={{ marginTop: 8 }}>
6262
<Text style={styles.link}>
6363
https://www.google.com
6464
</Text>

example/index.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* @flow
77
*/
88

9-
import React, {Component} from 'react';
9+
import React, { Component } from 'react';
1010
import {
1111
AppRegistry,
1212
StyleSheet,
1313
Text,
1414
TouchableHighlight,
1515
View
1616
} from 'react-native';
17-
import {CustomTabs} from 'react-native-custom-tabs';
17+
import { CustomTabs } from 'react-native-custom-tabs';
1818

1919
export default class Example extends Component {
2020
render() {

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
*/
55
'use strict';
66

7-
import {Platform} from 'react-native';
7+
import { Platform } from 'react-native';
88
import ChromeIOS from './src/ChromeIOS';
99
import CustomTabsAndroid from './src/CustomTabsAndroid';
10-
import {ANIMATIONS_SLIDE, ANIMATIONS_FADE} from './src/TabOption';
10+
import { ANIMATIONS_SLIDE, ANIMATIONS_FADE } from './src/TabOption';
1111

12-
import type {TabOption as _TabOption} from './src/TabOption';
12+
import type { TabOption as _TabOption } from './src/TabOption';
1313

1414
export type TabOption = _TabOption;
1515

1616
const CustomTabs = Platform.OS === 'android' ? CustomTabsAndroid : ChromeIOS;
17-
export {CustomTabs, ANIMATIONS_SLIDE, ANIMATIONS_FADE};
17+
export { CustomTabs, ANIMATIONS_SLIDE, ANIMATIONS_FADE };

src/ChromeIOS.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66
'use strict';
77

8-
import {NativeModules} from 'react-native';
9-
import type {TabOption} from './TabOption';
8+
import { NativeModules } from 'react-native';
9+
import type { TabOption } from './TabOption';
1010

1111
const ChromeManager = NativeModules.DBChromeManager;
1212

@@ -22,7 +22,7 @@ export default class ChromeIOS {
2222
* @param url the Uri to be opened.
2323
* @param option the Option in iOS is ignored
2424
*/
25-
static openURL(url:string, option:TabOption = {}):Promise<boolean> {
25+
static openURL(url: string, option: TabOption = {}): Promise<boolean> {
2626
return ChromeManager.openURL(url)
2727
}
2828
}

src/CustomTabsAndroid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66
'use strict';
77

8-
import {NativeModules} from 'react-native';
9-
import type {TabOption} from './TabOption';
8+
import { NativeModules } from 'react-native';
9+
import type { TabOption } from './TabOption';
1010

1111
const CustomTabsManager = NativeModules.CustomTabsManager;
1212

@@ -22,7 +22,7 @@ export default class CustomTabsAndroid {
2222
* @param url the Uri to be opened.
2323
* @param option the Option to customize Custom Tabs of look & feel.
2424
*/
25-
static openURL(url:string, option:TabOption = {}):Promise<boolean> {
25+
static openURL(url: string, option: TabOption = {}): Promise<boolean> {
2626
return CustomTabsManager.openURL(url, option)
2727
}
2828
}

src/TabOption.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ export type TabOption = {
4343
*
4444
* {@link http://d.android.com/reference/android/graphics/Color.html#parseColor(java.lang.String) Color.parseColor(String)}
4545
*/
46-
toolbarColor?: string;
46+
toolbarColor?: string;
4747

4848
/**
4949
* Enables the url bar to hide as the user scrolls down on the page.
5050
*/
51-
enableUrlBarHiding?: boolean;
51+
enableUrlBarHiding?: boolean;
5252

5353
/**
5454
* Sets whether the title should be shown in the custom tab.
5555
*/
56-
showPageTitle?: boolean;
56+
showPageTitle?: boolean;
5757

5858
/**
5959
* Whether to add a default shared items of the menu.
6060
*/
61-
enableDefaultShare?: boolean;
61+
enableDefaultShare?: boolean;
6262

6363
/**
6464
* Sets the exit and start animations.
@@ -69,12 +69,12 @@ export type TabOption = {
6969
* @see ANIMATIONS_FADE
7070
* @see ANIMATIONS_SLIDE
7171
*/
72-
animations?: Animations;
72+
animations?: Animations;
7373

7474
/**
7575
* Sets any custom headers that should be used.
7676
*/
77-
headers?: Object;
77+
headers?: Object;
7878

7979
/**
8080
* Workaround that Custom Tabs doesn't close on redirecting back to app scheme.

0 commit comments

Comments
 (0)