From 5dea51475188063657747ca8e2f6a970cde78094 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Tue, 3 May 2022 11:13:53 -0400 Subject: [PATCH] chore: evaluate `PickerView` (#4096) --- app/views/PickerView.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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) => (