本机基本按钮未在 Android 上正确显示

时间:2021-03-30 14:32:54

标签: android react-native native-base

我正在使用块按钮,一个带有颜色,一个带有透明背景。

**在 Android 上的透明按钮显示一些灰色背景。

此外,文本仅在 Android 上以大写形式显示。**

enter image description here

 <NativeButton
        testID={testID}
        small={isSmall}
        disabled={isDisabled}
        block={isFullLength}
        rounded
        style={[
            tailwind(`justify-center ${buttonStyle[isVariant](isPressed)} ${buttonClasses}`),
            {
                ...buttonStyles,
                ...shadowStyle,
                ...floatingStyle,
            },
        ]}
        onPress={onPress}
        onPressIn={onPressIn}
        onPressOut={onPressOut}
        activeOpacity={1}>
        <NativeText
            style={[
                tailwind(`${textStyle[isVariant](isPressed)} font-extrabold   ${textClasses}`),
                {
                    ...textStyles,
                    fontFamily: 'Poppins-SemiBold',
                    textAlignVertical: 'center',
                    textAlign: 'center',
                    ...smallButtonStyle,
                },
            ]}>
            {children}
        </NativeText>
        {icon}
    </NativeButton>
</Content>

0 个答案:

没有答案
相关问题