Skip to content

Commit a1f7fbd

Browse files
author
Mohit
committed
fix: TS2307
1 parent 3915a3c commit a1f7fbd

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

lib/constant.ts renamed to lib/Constant.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Dimensions, Platform, StatusBar} from 'react-native';
1+
import { Dimensions, Platform, StatusBar } from 'react-native';
22
const { height, width } = Dimensions.get('window');
33

44
/* =========== */
@@ -21,7 +21,7 @@ const statusBarHeight = Platform.select({
2121
});
2222
/* ====== x ====== */
2323

24-
const {height: screenHeight, width: screenWidth} = Dimensions.get('screen');
24+
const { height: screenHeight, width: screenWidth } = Dimensions.get('screen');
2525
const navBarHeight = screenHeight - statusBarHeight - height;
2626
const isNavBarVisible = navBarHeight > 0;
2727
const visibleHeight = height - navBarHeight;
@@ -44,6 +44,6 @@ export const constants = {
4444
visibleHeight,
4545
isIPhoneX,
4646
os,
47-
statusBarHeight
48-
}
47+
statusBarHeight,
48+
},
4949
} as const;

lib/Main.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import Sugar from './Sugar';
22
import { themeCreator } from './Provider';
3-
4-
5-
export default class Main {
3+
export default class Main {
64
init<T>(theme: T) {
75
const StyleSheet = new Sugar<T>(theme);
8-
const { ThemeContext, ThemeProvider, useTheme, withTheme } = themeCreator(StyleSheet, theme);
9-
return { StyleSheet, ThemeContext, ThemeProvider, useTheme, withTheme };
6+
const { ThemeContext, ThemeProvider, useTheme, withTheme } = themeCreator(
7+
StyleSheet,
8+
theme
9+
);
10+
return { StyleSheet, ThemeContext, ThemeProvider, useTheme, withTheme };
1011
}
11-
}
12+
}

0 commit comments

Comments
 (0)