fix android padding

This commit is contained in:
Samuel Newman
2025-05-02 11:59:45 +03:00
parent 8f8f8143e3
commit beae4a5765
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -217,6 +217,7 @@ module.exports = function (_config) {
compileSdkVersion: 35, compileSdkVersion: 35,
targetSdkVersion: 35, targetSdkVersion: 35,
buildToolsVersion: '35.0.0', buildToolsVersion: '35.0.0',
newArchEnabled: true,
}, },
}, },
], ],
+7 -7
View File
@@ -1,12 +1,12 @@
import React from 'react' import React from 'react'
import { import {
AccessibilityProps, type AccessibilityProps,
StyleSheet, StyleSheet,
TextInput, TextInput,
TextInputProps, type TextInputProps,
TextStyle, type TextStyle,
View, View,
ViewStyle, type ViewStyle,
} from 'react-native' } from 'react-native'
import {HITSLOP_20} from '#/lib/constants' import {HITSLOP_20} from '#/lib/constants'
@@ -16,13 +16,13 @@ import {
applyFonts, applyFonts,
atoms as a, atoms as a,
ios, ios,
TextStyleProp, type TextStyleProp,
useAlf, useAlf,
useTheme, useTheme,
web, web,
} from '#/alf' } from '#/alf'
import {useInteractionState} from '#/components/hooks/useInteractionState' 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' import {Text} from '#/components/Typography'
const Context = React.createContext<{ const Context = React.createContext<{
@@ -196,7 +196,7 @@ export function createInput(Component: typeof TextInput) {
minWidth: 0, minWidth: 0,
}, },
ios({paddingTop: 12, paddingBottom: 13}), ios({paddingTop: 12, paddingBottom: 13}),
android(a.py_sm), android(a.py_md),
// fix for autofill styles covering border // fix for autofill styles covering border
web({ web({
paddingTop: 10, paddingTop: 10,