@kietpt2003/react-native-core-ui
Version:
React Native Core UI components by KietPT
65 lines • 1.87 kB
TypeScript
import { StyleProp } from 'react-native';
/**
* getPaddingTop - Get the top padding based on the device type
*
* 26 OPPO
* 28 NOKIA
* @returns {number} - Top padding
* @example
* ```jsx
* import { getPaddingTop } from '@kietpt2003/react-native-core-ui/utils';
* const paddingTop = getPaddingTop();
* console.log("paddingTop:", paddingTop);
* ```
*/
export declare const getPaddingTop: () => number;
/**
* getPaddingBottom - Get the bottom padding based on the device type
* @returns {number} - Bottom padding
* @example
* ```jsx
* import { getPaddingBottom } from '@kietpt2003/react-native-core-ui/utils';
* const paddingBottom = getPaddingBottom();
* console.log("paddingBottom:", paddingBottom);
* ```
*/
export declare const getPaddingBottom: () => number;
/**
* isTablet - Check if the device is a tablet
* @returns {boolean} - true if the device is a tablet, false otherwise
* @example
* ```jsx
* import { isTablet } from '@kietpt2003/react-native-core-ui/utils';
* console.log("isTablet", isTablet); // true/false
* ```
*/
export declare const isTablet: boolean;
/**
* Use this function to get the styles based on the device type
* @example
* ```jsx
* <View style={StylePlatform({
tablet: styles.containerTablet,
phone: styles.containerPhone
})}>
<Text style={StylePlatform({
tablet: styles.textTablet,
phone: styles.textPhone
})}>
Hello, Platform!
</Text>
</View>
```
*/
export declare const StylePlatform: (styles: StyleProp<any>) => any;
/**
* statusBarHeight of the device
* @returns {number} - statusBarHeight
* @example
* ```jsx
* import { statusBarHeight } from '@kietpt2003/react-native-core-ui/utils';
* console.log("statusBarHeight", statusBarHeight);
* ```
*/
export declare const statusBarHeight: number;
//# sourceMappingURL=resolutions.d.ts.map