diff --git a/src/components/checkbox/Checkbox.tsx b/src/components/checkbox/Checkbox.tsx index 6aa9c895..e8844aa1 100644 --- a/src/components/checkbox/Checkbox.tsx +++ b/src/components/checkbox/Checkbox.tsx @@ -264,6 +264,12 @@ const RNCheckbox: React.FC> = forwardRef< ), ), // - Web only - Checkbox toggle on Spacebar Press + /** + * * The TypeScript error arises due to an inconsistency between the expected ViewStyle type + * * and the specific styling provided for the web platform, + * * which includes outline and boxShadow properties not defined in the ViewStyle type. + */ + // @ts-ignore isFocussed && !hasOnlyLabel ? Platform.select({ web: { diff --git a/src/components/radio/Radio.tsx b/src/components/radio/Radio.tsx index 67bebecd..7ead1798 100644 --- a/src/components/radio/Radio.tsx +++ b/src/components/radio/Radio.tsx @@ -173,6 +173,12 @@ const RNRadio: React.FC> = forwardRef< : "", ), ), + /** + * * The TypeScript error arises due to an inconsistency between the expected ViewStyle type + * * and the specific styling provided for the web platform, + * * which includes outline and boxShadow properties not defined in the ViewStyle type. + */ + // @ts-ignore isFocussed && !hasOnlyLabel ? Platform.select({ web: { diff --git a/src/components/select/SelectOption.tsx b/src/components/select/SelectOption.tsx index 465b05df..41501e97 100644 --- a/src/components/select/SelectOption.tsx +++ b/src/components/select/SelectOption.tsx @@ -135,6 +135,12 @@ const RNSelectOption: React.FC = forwardRef< : "", ), ), + /** + * * The TypeScript error arises due to an inconsistency between the expected ViewStyle type + * * and the specific styling provided for the web platform, + * * which includes outline and boxShadow properties not defined in the ViewStyle type. + */ + // @ts-ignore isFocussed && !hasOnlyLabel ? Platform.select({ web: { diff --git a/src/components/text-area/TextArea.tsx b/src/components/text-area/TextArea.tsx index e0849f39..b1b056f5 100644 --- a/src/components/text-area/TextArea.tsx +++ b/src/components/text-area/TextArea.tsx @@ -1,5 +1,5 @@ import React, { forwardRef, useMemo, useRef, useState } from "react"; -import { Platform, TextInputProps } from "react-native"; +import { Platform, TextInputProps, TextStyleAndroid } from "react-native"; import { Box, BoxProps, RNTextInput, TouchableProps } from "../../primitives"; import { getTextFontFamily, useTailwind, useTheme } from "../../theme"; @@ -236,6 +236,12 @@ const RNTextArea: React.FC> = forwardRef< ), ), getTextFontFamily(textAreaTheme.size[size]?.base?.default), + /** + * * The TypeScript error arises due to an inconsistency between the expected ViewStyle type + * * and the specific styling provided for the web platform, + * * which includes outline and boxShadow properties not defined in the ViewStyle type. + */ + // @ts-ignore isFocussedWeb.value ? Platform.select({ web: { @@ -251,7 +257,9 @@ const RNTextArea: React.FC> = forwardRef< }, }) : {}, - Platform.OS === "android" ? textAreaTheme.android : {}, + Platform.OS === "android" + ? (textAreaTheme.android as TextStyleAndroid) + : {}, styleAdapter(textInputStyle), ]} multiline={true}