diff --git a/src/common/LineSeparator.js b/src/common/LineSeparator.js index 9bc399d2ece..7db7a2f8e7f 100644 --- a/src/common/LineSeparator.js +++ b/src/common/LineSeparator.js @@ -5,7 +5,7 @@ import { View } from 'react-native'; import type { ThemeColors } from '../styles'; import { ThemeContext } from '../styles'; -export default class LineSeparator extends PureComponent<{}> { +export default class LineSeparator extends PureComponent<{||}> { static contextType = ThemeContext; context: ThemeColors; diff --git a/src/common/OptionDivider.js b/src/common/OptionDivider.js index 501fa05a4ad..1e2285383b2 100644 --- a/src/common/OptionDivider.js +++ b/src/common/OptionDivider.js @@ -5,7 +5,7 @@ import { View } from 'react-native'; import type { ThemeColors } from '../styles'; import { ThemeContext } from '../styles'; -export default class OptionDivider extends PureComponent<{}> { +export default class OptionDivider extends PureComponent<{||}> { static contextType = ThemeContext; context: ThemeColors; diff --git a/src/common/SectionSeparator.js b/src/common/SectionSeparator.js index b26cf6a965c..1e6f2ecdd4d 100644 --- a/src/common/SectionSeparator.js +++ b/src/common/SectionSeparator.js @@ -10,7 +10,7 @@ const styles = StyleSheet.create({ }, }); -export default class SectionSeparator extends PureComponent<{}> { +export default class SectionSeparator extends PureComponent<{||}> { render() { return ; } diff --git a/src/diagnostics/TimingScreen.js b/src/diagnostics/TimingScreen.js index 97afee8a953..d57188e21f9 100644 --- a/src/diagnostics/TimingScreen.js +++ b/src/diagnostics/TimingScreen.js @@ -6,7 +6,7 @@ import { Screen } from '../common'; import TimeItem from './TimeItem'; import timing from '../utils/timing'; -export default class TimingScreen extends PureComponent<{}> { +export default class TimingScreen extends PureComponent<{||}> { render() { return ( diff --git a/src/diagnostics/VariablesScreen.js b/src/diagnostics/VariablesScreen.js index a3c37b7b501..e68398a5f9a 100644 --- a/src/diagnostics/VariablesScreen.js +++ b/src/diagnostics/VariablesScreen.js @@ -6,7 +6,7 @@ import config from '../config'; import { Screen } from '../common'; import InfoItem from './InfoItem'; -export default class VariablesScreen extends PureComponent<{}> { +export default class VariablesScreen extends PureComponent<{||}> { render() { const variables = { enableReduxLogging: config.enableReduxLogging, diff --git a/src/main/MainScreenWithTabs.js b/src/main/MainScreenWithTabs.js index 3638f4bfae7..81ac9a7199d 100644 --- a/src/main/MainScreenWithTabs.js +++ b/src/main/MainScreenWithTabs.js @@ -7,7 +7,7 @@ import { OfflineNotice, ZulipStatusBar } from '../common'; import MainTabs from './MainTabs'; import styles from '../styles'; -export default class MainScreenWithTabs extends PureComponent<{}> { +export default class MainScreenWithTabs extends PureComponent<{||}> { context: Context; static contextTypes = { diff --git a/src/message/AnnouncementOnly.js b/src/message/AnnouncementOnly.js index 05a5a3354fd..bb9e3f9bcc8 100644 --- a/src/message/AnnouncementOnly.js +++ b/src/message/AnnouncementOnly.js @@ -5,7 +5,7 @@ import { View } from 'react-native'; import { Label } from '../common'; import styles from '../styles'; -class AnnouncementOnly extends PureComponent<{}> { +class AnnouncementOnly extends PureComponent<{||}> { render() { return ( diff --git a/src/start/CompatibilityScreen.js b/src/start/CompatibilityScreen.js index 4df8cf7d57b..8cf984678cd 100644 --- a/src/start/CompatibilityScreen.js +++ b/src/start/CompatibilityScreen.js @@ -44,7 +44,7 @@ const GooglePlayBadge = () => ( ); -export default class CompatibilityScreen extends PureComponent<{}> { +export default class CompatibilityScreen extends PureComponent<{||}> { storeURL = Platform.OS === 'ios' ? 'https://itunes.apple.com/app/zulip/id1203036395' diff --git a/src/start/LoadingScreen.js b/src/start/LoadingScreen.js index faa7eae1137..f1ae48e46d4 100644 --- a/src/start/LoadingScreen.js +++ b/src/start/LoadingScreen.js @@ -14,7 +14,7 @@ const styles = StyleSheet.create({ }, }); -export default class LoadingScreen extends PureComponent<{}> { +export default class LoadingScreen extends PureComponent<{||}> { render() { return ( diff --git a/src/start/WelcomeHelpScreen.js b/src/start/WelcomeHelpScreen.js index 5238b97afe0..872e16da3de 100644 --- a/src/start/WelcomeHelpScreen.js +++ b/src/start/WelcomeHelpScreen.js @@ -10,7 +10,7 @@ const styles = StyleSheet.create({ }, }); -export default class WelcomeHelpScreen extends PureComponent<{}> { +export default class WelcomeHelpScreen extends PureComponent<{||}> { render() { return (