From 851600f417a6486a443c261a82f5f0cea5db5d05 Mon Sep 17 00:00:00 2001 From: Thom van den Akker Date: Sun, 9 Apr 2023 11:30:27 +0200 Subject: [PATCH] fix: changed imports --- package-lock.json | 1 + src/module/paperSelect.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index e2cf298..546f014 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "peerDependencies": { "@types/react": "*", "@types/react-native": "*", + "@types/react-native-vector-icons": "*", "react": "*", "react-native": "*", "react-native-paper": "*", diff --git a/src/module/paperSelect.tsx b/src/module/paperSelect.tsx index 2e232f6..76f53c5 100644 --- a/src/module/paperSelect.tsx +++ b/src/module/paperSelect.tsx @@ -12,6 +12,8 @@ import { Dialog, Portal, Searchbar, + ThemeProvider, + useTheme, } from 'react-native-paper'; import CheckboxInput from '../components/checkBox'; import type { @@ -19,10 +21,7 @@ import type { PaperSelectProps, PaperSelectTextInputProps, } from '../interface/paperSelect.interface'; -import { - ThemeProvider, - useInternalTheme, -} from 'react-native-paper/lib/typescript/src/core/theming'; +import type { InternalTheme } from 'react-native-paper/lib/typescript/src/types'; const PaperSelect = ({ // Required props @@ -64,7 +63,7 @@ const PaperSelect = ({ checkboxProps: checkboxPropsOverrides, searchbarProps: searchbarPropsOverrides, }: PaperSelectProps) => { - const theme = useInternalTheme(themeOverrides); + const theme = useTheme(themeOverrides); const textInputProps: PaperSelectTextInputProps = { underlineColor: textInputPropOverrides?.underlineColor || 'black',