diff --git a/react/features/base/ui/components/native/Button.tsx b/react/features/base/ui/components/native/Button.tsx index 623e345b7e3..4525ffa7bea 100644 --- a/react/features/base/ui/components/native/Button.tsx +++ b/react/features/base/ui/components/native/Button.tsx @@ -8,6 +8,7 @@ import BaseTheme from '../BaseTheme.native'; import { IButtonProps } from '../types'; import styles from './buttonStyles'; +import {IconSource} from "react-native-paper/lib/typescript/components/Icon"; export interface IProps extends IButtonProps { @@ -101,7 +102,7 @@ const Button: React.FC = ({ contentStyle ] as StyleProp } disabled = { disabled } - icon = { icon } + icon = { icon as IconSource | undefined } id = { id } labelStyle = { [ buttonLabelStyles, diff --git a/react/features/base/ui/components/native/Switch.tsx b/react/features/base/ui/components/native/Switch.tsx index 741362fc065..f4717363b50 100644 --- a/react/features/base/ui/components/native/Switch.tsx +++ b/react/features/base/ui/components/native/Switch.tsx @@ -53,7 +53,7 @@ const Switch = ({ onValueChange = { onChange } style = { style as StyleProp } thumbColor = { thumbColor } - trackColor = { trackColor as ColorValue } + trackColor = { trackColor } value = { checked } /> );