我正在使用块按钮,一个带有颜色,一个带有透明背景。
**在 Android 上的透明按钮显示一些灰色背景。
此外,文本仅在 Android 上以大写形式显示。**
<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>