Skip to content

Commit

Permalink
fix: update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
fateh999 committed Jul 20, 2024
1 parent 4e7ffaa commit d4c61d0
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ const styles = StyleSheet.create({
## Props
```typescript
import type { ForwardRefExoticComponent } from 'react';
import type { PressableProps, View, ViewStyle } from 'react-native';
import type { TextInputLabelProp } from 'react-native-paper/lib/typescript/components/TextInput/types';
import type { TextInputProps } from 'react-native-paper';
import { ForwardRefExoticComponent } from 'react';
import { PressableProps, View, ViewStyle } from 'react-native';
import { TextInputLabelProp } from 'react-native-paper/lib/typescript/components/TextInput/types';
import { TextInputProps } from 'react-native-paper';

export type DropdownInputProps = {
placeholder?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Menu, TextInput, TouchableRipple } from 'react-native-paper';
import DropdownItem from './dropdown-item';
import DropdownInput from './dropdown-input';
import type { DropdownProps } from './types';
import { DropdownProps } from './types';

function Dropdown(props: DropdownProps) {
const [enable, setEnable] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown-input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TextInput } from 'react-native-paper';
import type { DropdownInputProps } from './types';
import { DropdownInputProps } from './types';

function DropdownInput(props: DropdownInputProps) {
const { placeholder, label, rightIcon, selectedLabel, mode, disabled } =
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown-item.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo } from 'react';
import { useTheme, Menu, Divider } from 'react-native-paper';
import { Fragment } from 'react/jsx-runtime';
import type { DropdownItemProps } from './types';
import { DropdownItemProps } from './types';

function DropdownItem(props: DropdownItemProps) {
const { option, width, value, onSelect, toggleMenu, isLast, menuItemTestID } =
Expand Down
5 changes: 1 addition & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DropdownInput from './dropdown-input';
import DropdownItem from './dropdown-item';
import MultiSelectDropdownItem from './multi-select-dropdown-item';
import MultiSelectDropdown from './multi-select-dropdown';
import type {
import {
DropdownInputProps,
DropdownItemProps,
DropdownProps,
Expand All @@ -18,9 +18,6 @@ export {
DropdownInput,
DropdownItem,
MultiSelectDropdownItem,
};

export type {
DropdownInputProps,
DropdownItemProps,
DropdownProps,
Expand Down
2 changes: 1 addition & 1 deletion src/multi-select-dropdown-item.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useMemo, Fragment } from 'react';
import { useTheme, Menu, Divider, Checkbox } from 'react-native-paper';
import { View, type ViewStyle } from 'react-native';
import type { MultiSelectDropdownItemProps } from './types';
import { MultiSelectDropdownItemProps } from './types';

function MultiSelectDropdownItem(props: MultiSelectDropdownItemProps) {
const { option, width, value = [], onSelect, isLast, menuItemTestID } = props;
Expand Down
2 changes: 1 addition & 1 deletion src/multi-select-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Menu, TextInput, TouchableRipple } from 'react-native-paper';
import DropdownInput from './dropdown-input';
import MultiSelectDropdownItem from './multi-select-dropdown-item';
import type { MultiSelectDropdownProps } from './types';
import { MultiSelectDropdownProps } from './types';

function MultiSelectDropdown(props: MultiSelectDropdownProps) {
const [enable, setEnable] = useState(false);
Expand Down
8 changes: 4 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ForwardRefExoticComponent } from 'react';
import type { PressableProps, View, ViewStyle } from 'react-native';
import type { TextInputLabelProp } from 'react-native-paper/lib/typescript/components/TextInput/types';
import type { TextInputProps } from 'react-native-paper';
import { ForwardRefExoticComponent } from 'react';
import { PressableProps, View, ViewStyle } from 'react-native';
import { TextInputLabelProp } from 'react-native-paper/lib/typescript/components/TextInput/types';
import { TextInputProps } from 'react-native-paper';

export type DropdownInputProps = {
placeholder?: string;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
"verbatimModuleSyntax": true
"verbatimModuleSyntax": false
}
}

0 comments on commit d4c61d0

Please sign in to comment.