diff --git a/react/features/base/toolbox/components/ToolboxItem.native.tsx b/react/features/base/toolbox/components/ToolboxItem.native.tsx index f4cb709bc1..b7c85e9444 100644 --- a/react/features/base/toolbox/components/ToolboxItem.native.tsx +++ b/react/features/base/toolbox/components/ToolboxItem.native.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Text, TouchableHighlight, View } from 'react-native'; +import { Text, TextStyle, TouchableHighlight, View, ViewStyle } from 'react-native'; import Icon from '../../icons/components/Icon'; @@ -53,9 +53,9 @@ export default class ToolboxItem extends AbstractToolboxItem { // show both the icon and the label, then these two need to be // wrapped in a View. children = ( - + { children } - + { this.label } { elementAfter } @@ -70,11 +70,11 @@ export default class ToolboxItem extends AbstractToolboxItem { return ( { children } diff --git a/react/features/base/ui/components/native/IconButton.tsx b/react/features/base/ui/components/native/IconButton.tsx index 2e61680324..b2203c0d94 100644 --- a/react/features/base/ui/components/native/IconButton.tsx +++ b/react/features/base/ui/components/native/IconButton.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { TouchableHighlight } from 'react-native'; +import { TouchableHighlight, ViewStyle } from 'react-native'; import Icon from '../../../icons/components/Icon'; import styles from '../../../react/components/native/styles'; @@ -58,7 +58,7 @@ const IconButton: React.FC = ({ style = { [ iconButtonContainerStyles, style - ] } + ] as ViewStyle } underlayColor = { underlayColor }>