Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { Platform } from 'react-native';
import {
COMPOSER_TEXT_GEOMETRIC_PADDING,
composerTextPaddingForPlatform,
type ComposerTextPlatform,
} from '@/session/composerTextMetrics';
const composerTextPlatform: ComposerTextPlatform = Platform.OS === 'ios'
? 'ios'
: Platform.OS === 'android'
? 'android'
: 'default';
const composerTextPadding = composerTextPaddingForPlatform(composerTextPlatform);
/** Platform-specific padding adapter; the base metrics remain node-testable. */
export const COMPOSER_TEXT_PADDING_TOP = composerTextPadding.top;
export const COMPOSER_TEXT_PADDING_BOTTOM = composerTextPadding.bottom;
export const COMPOSER_TEXT_GEOMETRIC_PADDING_TOP = COMPOSER_TEXT_GEOMETRIC_PADDING.top;
export const COMPOSER_TEXT_GEOMETRIC_PADDING_BOTTOM = COMPOSER_TEXT_GEOMETRIC_PADDING.bottom;