chore: evaluate `PickerView` (#4096)
This commit is contained in:
parent
ed63f69a2d
commit
5dea514751
|
@ -1,8 +1,7 @@
|
||||||
import React from 'react';
|
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 { FlatList, StyleSheet, Text, View } from 'react-native';
|
||||||
|
|
||||||
|
import { IBaseScreen } from '../definitions';
|
||||||
import I18n from '../i18n';
|
import I18n from '../i18n';
|
||||||
import { TSupportedThemes, withTheme } from '../theme';
|
import { TSupportedThemes, withTheme } from '../theme';
|
||||||
import { themes } from '../lib/constants';
|
import { themes } from '../lib/constants';
|
||||||
|
@ -49,11 +48,7 @@ interface IPickerViewState {
|
||||||
searchText: string;
|
searchText: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IPickerViewProps {
|
type IPickerViewProps = IBaseScreen<ChatsStackParamList, 'PickerView'>;
|
||||||
navigation: StackNavigationProp<ChatsStackParamList, 'PickerView'>;
|
|
||||||
route: RouteProp<ChatsStackParamList, 'PickerView'>;
|
|
||||||
theme: TSupportedThemes;
|
|
||||||
}
|
|
||||||
|
|
||||||
const Item = React.memo(({ item, selected, onItemPress, theme }: IItem) => (
|
const Item = React.memo(({ item, selected, onItemPress, theme }: IItem) => (
|
||||||
<List.Item
|
<List.Item
|
||||||
|
|
Loading…
Reference in New Issue