mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Refine RN 0.64
This commit is contained in:
@ -6,14 +6,14 @@ export const StyleConstants = {
|
||||
LineHeight: {
|
||||
S: 20,
|
||||
M: 22,
|
||||
L: 30
|
||||
L: 28
|
||||
},
|
||||
Weight: { Normal: '400' as '400', Bold: '600' as '600' }
|
||||
},
|
||||
FontStyle: {
|
||||
S: { fontSize: 14, lineHeight: 20 },
|
||||
M: { fontSize: 16, lineHeight: 22 },
|
||||
L: { fontSize: 20, lineHeight: 30 }
|
||||
L: { fontSize: 20, lineHeight: 28 }
|
||||
},
|
||||
|
||||
Spacing: {
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { Dimensions } from 'react-native'
|
||||
// import { Dimensions } from 'react-native'
|
||||
|
||||
const { width } = Dimensions.get('screen')
|
||||
// const { width } = Dimensions.get('screen')
|
||||
|
||||
const guidelineBaseWidth = 375
|
||||
// const guidelineBaseWidth = 375
|
||||
// const guidelineBaseHeight = 667
|
||||
|
||||
const scale = (size: number) => (width / guidelineBaseWidth) * size
|
||||
// const scale = (size: number) => (width / guidelineBaseWidth) * size
|
||||
// const verticalScale = (size: number) => (height / guidelineBaseHeight) * size
|
||||
// const adaptiveScale = (size: number, factor: number = 0) =>
|
||||
// size + (scale(size) - size) * factor
|
||||
|
Reference in New Issue
Block a user