mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Minor fixes according to DeepScan
This commit is contained in:
@ -1,12 +1,8 @@
|
||||
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
|
||||
import i18n from '@root/i18n/i18n'
|
||||
import { RootState, store } from '@root/store'
|
||||
import { RootState } from '@root/store'
|
||||
import * as Analytics from 'expo-firebase-analytics'
|
||||
import * as Localization from 'expo-localization'
|
||||
import * as Notifications from 'expo-notifications'
|
||||
import { pickBy } from 'lodash'
|
||||
import androidDefaults from './instances/push/androidDefaults'
|
||||
import { getInstances } from './instancesSlice'
|
||||
|
||||
enum availableLanguages {
|
||||
'zh-Hans',
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { Dimensions } from 'react-native'
|
||||
|
||||
const { width, height } = Dimensions.get('screen')
|
||||
const { width } = Dimensions.get('screen')
|
||||
|
||||
const guidelineBaseWidth = 375
|
||||
const guidelineBaseHeight = 667
|
||||
// const guidelineBaseHeight = 667
|
||||
|
||||
const scale = (size: number) => (width / guidelineBaseWidth) * size
|
||||
const verticalScale = (size: number) => (height / guidelineBaseHeight) * size
|
||||
// const verticalScale = (size: number) => (height / guidelineBaseHeight) * size
|
||||
const moderateScale = (size: number, factor = 0.5) =>
|
||||
size + (scale(size) - size) * factor
|
||||
|
||||
|
Reference in New Issue
Block a user