Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(base): minor syntax and ts types fixes

Calin-Teodor2b719743d38d
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<IProps> {
// show both the icon and the label, then these two need to be
// wrapped in a View.
children = (
- <View style = { style }>
+ <View style = { style as ViewStyle }>
{ children }
- <Text style = { styles?.labelStyle }>
+ <Text style = { styles?.labelStyle as TextStyle }>
{ this.label }
</Text>
{ elementAfter }
@@ -70,11 +70,11 @@ export default class ToolboxItem extends AbstractToolboxItem<IProps> {
return (
<TouchableHighlight
accessibilityLabel = { this.accessibilityLabel }
- accessibilityRole = 'button'
+ accessibilityRole = { 'button' }
accessibilityState = {{ 'selected': Boolean(toggled) }}
disabled = { disabled }
onPress = { onClick }
- style = { style }
+ style = { style as ViewStyle }
underlayColor = { styles?.underlayColor } >
{ children }
</TouchableHighlight>
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<IIconButtonProps> = ({
style = { [
iconButtonContainerStyles,
style
- ] }
+ ] as ViewStyle }
underlayColor = { underlayColor }>
<Icon
color = { color }