From beae4a5765fe0399b540e9495ccdb6d88b4d90b8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 2 May 2025 11:59:45 +0300 Subject: [PATCH] fix android padding --- app.config.js | 1 + src/components/forms/TextField.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app.config.js b/app.config.js index 6fd4422bca..6957197d0a 100644 --- a/app.config.js +++ b/app.config.js @@ -217,6 +217,7 @@ module.exports = function (_config) { compileSdkVersion: 35, targetSdkVersion: 35, buildToolsVersion: '35.0.0', + newArchEnabled: true, }, }, ], diff --git a/src/components/forms/TextField.tsx b/src/components/forms/TextField.tsx index e5fb338497..ea7f8e94ef 100644 --- a/src/components/forms/TextField.tsx +++ b/src/components/forms/TextField.tsx @@ -1,12 +1,12 @@ import React from 'react' import { - AccessibilityProps, + type AccessibilityProps, StyleSheet, TextInput, - TextInputProps, - TextStyle, + type TextInputProps, + type TextStyle, View, - ViewStyle, + type ViewStyle, } from 'react-native' import {HITSLOP_20} from '#/lib/constants' @@ -16,13 +16,13 @@ import { applyFonts, atoms as a, ios, - TextStyleProp, + type TextStyleProp, useAlf, useTheme, web, } from '#/alf' import {useInteractionState} from '#/components/hooks/useInteractionState' -import {Props as SVGIconProps} from '#/components/icons/common' +import {type Props as SVGIconProps} from '#/components/icons/common' import {Text} from '#/components/Typography' const Context = React.createContext<{ @@ -196,7 +196,7 @@ export function createInput(Component: typeof TextInput) { minWidth: 0, }, ios({paddingTop: 12, paddingBottom: 13}), - android(a.py_sm), + android(a.py_md), // fix for autofill styles covering border web({ paddingTop: 10,