xref: /MusicFree/src/constants/globalStyle.ts (revision 8e47be56b0121ae1a9c00382d70902276ffca225)
1import {StyleSheet} from 'react-native';
2
3const globalStyle = StyleSheet.create({
4    /** flex 1 */
5    flex1: {
6        flex: 1,
7    },
8    /** 满宽度 flex1 */
9    fwflex1: {
10        width: '100%',
11        flex: 1,
12    },
13    /** 居中 */
14    fullCenter: {
15        width: '100%',
16        flex: 1,
17        justifyContent: 'center',
18        alignItems: 'center',
19    },
20    notShrink: {
21        flexShrink: 0,
22        flexGrow: 0,
23    },
24    grow: {
25        flexShrink: 0,
26        flexGrow: 1,
27    },
28} as const);
29
30export default globalStyle;
31