/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/styles/styles-base.tsx
14 строк
590 B
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
import type {CSSProperties} from 'react' import type {TextStyle, ViewStyle} from 'react-native' export const urlEscapeFilePath = (path: string) => { if (path.startsWith('file://')) { const parts = path.split('/') parts[parts.length - 1] = encodeURIComponent(parts[parts.length - 1]!) return parts.join('/') } return path } export const castStyleDesktop = (style: unknown): CSSProperties | undefined => style as CSSProperties | undefined export const castStyleNative = (style: unknown): (TextStyle & ViewStyle) | undefined => style as (TextStyle & ViewStyle) | undefined