diff --git a/app/containers/LoginServices.tsx b/app/containers/LoginServices.tsx index 7872a417d..9698bfb4d 100644 --- a/app/containers/LoginServices.tsx +++ b/app/containers/LoginServices.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Animated, Easing, Linking, StyleSheet, Text, View } from 'react-native'; +import { Animated, Easing, Linking, StyleSheet, Text, View, ViewStyle } from 'react-native'; import { connect } from 'react-redux'; import { Base64 } from 'js-base64'; import * as AppleAuthentication from 'expo-apple-authentication'; @@ -410,7 +410,7 @@ class LoginServices extends React.PureComponent = { overflow: 'hidden', height: servicesHeight }; diff --git a/app/containers/MessageBox/RecordAudio.tsx b/app/containers/MessageBox/RecordAudio.tsx index ac717ffb2..24ba6392d 100644 --- a/app/containers/MessageBox/RecordAudio.tsx +++ b/app/containers/MessageBox/RecordAudio.tsx @@ -194,14 +194,10 @@ export default class RecordAudio extends React.PureComponent - + + + + ); } @@ -210,23 +206,17 @@ export default class RecordAudio extends React.PureComponent - - + + + + {this.GetLastDuration} - - + + + + ); @@ -235,24 +225,18 @@ export default class RecordAudio extends React.PureComponent - - + + + + {this.duration} - - + + + + ); diff --git a/app/containers/MessageBox/buttons/BaseButton.tsx b/app/containers/MessageBox/buttons/BaseButton.tsx index 6c9a36ae7..71bf8ec70 100644 --- a/app/containers/MessageBox/buttons/BaseButton.tsx +++ b/app/containers/MessageBox/buttons/BaseButton.tsx @@ -1,5 +1,6 @@ import { BorderlessButton } from 'react-native-gesture-handler'; import React from 'react'; +import { View } from 'react-native'; import styles from '../styles'; import i18n from '../../../i18n'; @@ -18,13 +19,10 @@ interface IBaseButton { const BaseButton = ({ accessibilityLabel, icon, color, ...props }: Partial) => { const { theme } = useTheme(); return ( - - + + + + ); }; diff --git a/app/containers/message/Reply.tsx b/app/containers/message/Reply.tsx index f3d45f51e..757f0e80b 100644 --- a/app/containers/message/Reply.tsx +++ b/app/containers/message/Reply.tsx @@ -77,8 +77,6 @@ const styles = StyleSheet.create({ marginBottom: 4 }, image: { - // @ts-ignore TODO - check with the team, change this to undefined - width: null, height: 200, flex: 1, borderTopLeftRadius: 4, diff --git a/app/views/CannedResponsesListView/index.tsx b/app/views/CannedResponsesListView/index.tsx index f8514f2dc..9ed27f83c 100644 --- a/app/views/CannedResponsesListView/index.tsx +++ b/app/views/CannedResponsesListView/index.tsx @@ -276,8 +276,8 @@ const CannedResponsesListView = ({ navigation, route }: ICannedResponsesListView headerTitleAlign: 'center', headerTitle: I18n.t('Canned_Responses'), headerTitleContainerStyle: { - left: null, - right: null + left: 0, + right: 0 } }; diff --git a/app/views/DiscussionsView/index.tsx b/app/views/DiscussionsView/index.tsx index f2be34802..bff30f9a6 100644 --- a/app/views/DiscussionsView/index.tsx +++ b/app/views/DiscussionsView/index.tsx @@ -131,8 +131,8 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): JSX.Elem headerTitleAlign: 'center', headerTitle: I18n.t('Discussions'), headerTitleContainerStyle: { - left: null, - right: null + left: 0, + right: 0 }, headerRight: () => ( diff --git a/app/views/RoomInfoEditView/index.tsx b/app/views/RoomInfoEditView/index.tsx index d96b1553b..5fbc5f2d5 100644 --- a/app/views/RoomInfoEditView/index.tsx +++ b/app/views/RoomInfoEditView/index.tsx @@ -738,7 +738,7 @@ class RoomInfoEditView extends React.Component - + {I18n.t('SAVE')} @@ -755,7 +755,7 @@ class RoomInfoEditView extends React.Component + accessibilityRole='button'> {I18n.t('RESET')} @@ -788,7 +788,7 @@ class RoomInfoEditView extends React.Component - + {I18n.t('DELETE')} diff --git a/app/views/ThreadMessagesView/index.tsx b/app/views/ThreadMessagesView/index.tsx index d967aaafc..86cbbac60 100644 --- a/app/views/ThreadMessagesView/index.tsx +++ b/app/views/ThreadMessagesView/index.tsx @@ -159,8 +159,8 @@ class ThreadMessagesView extends React.Component