diff --git a/app/views/PickerView.tsx b/app/views/PickerView.tsx index cb0565941..556e6414f 100644 --- a/app/views/PickerView.tsx +++ b/app/views/PickerView.tsx @@ -1,8 +1,7 @@ import React from 'react'; -import { StackNavigationProp } from '@react-navigation/stack'; -import { RouteProp } from '@react-navigation/native'; import { FlatList, StyleSheet, Text, View } from 'react-native'; +import { IBaseScreen } from '../definitions'; import I18n from '../i18n'; import { TSupportedThemes, withTheme } from '../theme'; import { themes } from '../lib/constants'; @@ -49,11 +48,7 @@ interface IPickerViewState { searchText: string; } -interface IPickerViewProps { - navigation: StackNavigationProp; - route: RouteProp; - theme: TSupportedThemes; -} +type IPickerViewProps = IBaseScreen; const Item = React.memo(({ item, selected, onItemPress, theme }: IItem) => (