xref: /MusicFree/src/constants/globalStyle.ts (revision 5589cdf32b2bb0f641e5ac7bf1f6152cd6b9b70e)
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    /** row 满宽度 flex1 */
14    rowfwflex1: {
15        width: '100%',
16        flex: 1,
17        flexDirection: 'row',
18    },
19    /** 居中 */
20    fullCenter: {
21        width: '100%',
22        flex: 1,
23        justifyContent: 'center',
24        alignItems: 'center',
25    },
26    notShrink: {
27        flexShrink: 0,
28        flexGrow: 0,
29    },
30    grow: {
31        flexShrink: 0,
32        flexGrow: 1,
33    },
34} as const);
35
36export default globalStyle;
37