Skip to content

Commit

Permalink
fix: changed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Thodor12 committed Apr 9, 2023
1 parent 693964b commit 851600f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/module/paperSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ import {
Dialog,
Portal,
Searchbar,
ThemeProvider,
useTheme,
} from 'react-native-paper';
import CheckboxInput from '../components/checkBox';
import type {
ListItem,
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
Expand Down Expand Up @@ -64,7 +63,7 @@ const PaperSelect = ({
checkboxProps: checkboxPropsOverrides,
searchbarProps: searchbarPropsOverrides,
}: PaperSelectProps) => {
const theme = useInternalTheme(themeOverrides);
const theme = useTheme<InternalTheme>(themeOverrides);

const textInputProps: PaperSelectTextInputProps = {
underlineColor: textInputPropOverrides?.underlineColor || 'black',
Expand Down

0 comments on commit 851600f

Please sign in to comment.