roto93 / react-native-neat-date-picker

An easy to use date picker for react native.
MIT License
52 stars 33 forks source link

TS Error #32

Open zRelux opened 1 year ago

zRelux commented 1 year ago

I upgraded from .9 to .12 and started getting this error:

node_modules/react-native-neat-date-picker/src/index.ts:3:15 - error TS2614: Module '"./components/NeatDatePicker"' has no exported member 'NeatDatePickerProps'. Did you mean to use 'import NeatDatePickerProps from "./components/NeatDatePicker"' instead?

3 import type { NeatDatePickerProps, ColorOptions } from './components/NeatDatePicker'
                ~~~~~~~~~~~~~~~~~~~

node_modules/react-native-neat-date-picker/src/index.ts:3:36 - error TS2614: Module '"./components/NeatDatePicker"' has no exported member 'ColorOptions'. Did you mean to use 'import ColorOptions from "./components/NeatDatePicker"' instead?

3 import type { NeatDatePickerProps, ColorOptions } from './components/NeatDatePicker'
                                     ~~~~~~~~~~~~

Found 2 errors in the same file, starting at: node_modules/react-native-neat-date-picker/src/index.ts:3

Looking at the code seems like TS is right any clue?

diecodev commented 1 year ago

Hi! Can you provide more info about your project? or create some example project to view the error.