1- import type { ViewStyle } from 'react-native' ;
1+ import type { ColorValue , ViewStyle } from 'react-native' ;
22
33import { black , white } from '../../theme/colors' ;
44import { tokens } from '../../theme/tokens' ;
@@ -25,7 +25,7 @@ const isDark = ({
2525 backgroundColor,
2626} : {
2727 dark ?: boolean ;
28- backgroundColor ?: string ;
28+ backgroundColor ?: ColorValue ;
2929} ) => {
3030 if ( typeof dark === 'boolean' ) {
3131 return dark ;
@@ -44,7 +44,7 @@ const getButtonBackgroundColor = ({
4444 disabled,
4545 customButtonColor,
4646} : BaseProps & {
47- customButtonColor ?: string ;
47+ customButtonColor ?: ColorValue ;
4848} ) => {
4949 const { colors } = theme as Theme ;
5050 if ( customButtonColor && ! disabled ) {
@@ -81,8 +81,8 @@ const getButtonTextColor = ({
8181 backgroundColor,
8282 dark,
8383} : BaseProps & {
84- customTextColor ?: string ;
85- backgroundColor : string ;
84+ customTextColor ?: ColorValue ;
85+ backgroundColor : ColorValue ;
8686 dark ?: boolean ;
8787} ) => {
8888 const { colors } = theme as Theme ;
@@ -145,8 +145,8 @@ export const getButtonColors = ({
145145} : {
146146 theme : InternalTheme ;
147147 mode : ButtonMode ;
148- customButtonColor ?: string ;
149- customTextColor ?: string ;
148+ customButtonColor ?: ColorValue ;
149+ customTextColor ?: ColorValue ;
150150 disabled ?: boolean ;
151151 dark ?: boolean ;
152152} ) => {
0 commit comments