react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Picker missing props

Open LazyAfternoons opened this issue 2 years ago • 2 comments

Description

Since the last version, TypeScript shows an error regarding the Picker component: Type '{ children: Element[]; migrateTextField: true; showSearch: boolean; value: selecteDate; onChange: (value: selecteDate) => void; placeholder: string; placeholderTextColor: string; fieldStyle: { ...; }; containerStyle: { ...; }; }' is missing the following properties from type 'Pick<any, "value" | "onChange" | "renderExpandableInput" | "renderExpandable" | "onToggleExpandableModal" | "topBarProps" | "rightButtonProps" | "color" | "containerStyle" | ... 436 more ... | "pickerModalProps">': renderExpandableInput, renderExpandable, onToggleExpandableModal, topBarProps, and 433 more.ts(2740)

Related to

  • [ ] Components
  • [ ] Demo
  • [ ] Docs
  • [x] Typings

Environment

  • React Native version: 0.69
  • React Native UI Lib version: 6.21.0

LazyAfternoons avatar Sep 11 '22 16:09 LazyAfternoons

also experiencing this, tried to solve by creating our own wrapped Picker which overrode types with Partial<originalProps> but was a pain. ended up downgrading react-native-ui-lib to 6.20.4 to solve typescript errors for now.

Environment (looks like you've got yours around the wrong way btw):

  • React Native UI Lib version: 6.21.0
  • React Native version: 0.69.5

chrdevmar avatar Sep 12 '22 05:09 chrdevmar

also experiencing this, tried to solve by creating our own wrapped Picker which overrode types with Partial<originalProps> but was a pain. ended up downgrading react-native-ui-lib to 6.20.4 to solve typescript errors for now.

Environment (looks like you've got yours around the wrong way btw):

  • React Native UI Lib version: 6.21.0
  • React Native version: 0.69.5

Thank you for confirming this issue. Environment fixed, thanks.

LazyAfternoons avatar Sep 12 '22 07:09 LazyAfternoons

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 16:11 stale[bot]

Also experiencing this. The latest version (6.23.0) doesn't seem to fix the issue.

MiguelAraCo avatar Nov 13 '22 23:11 MiguelAraCo

6.23.1 seems broken as well. In my case I am seeing Dialog infered as const Dialog: React.ComponentClass<any, any> & typeof Dialog. Is there a quick fix for it?

The-White-Fang avatar Nov 25 '22 02:11 The-White-Fang

Also getting this error, says i need to define all 400+ props

lewisd1996 avatar Dec 03 '22 20:12 lewisd1996

Can you show some SS or error/warning text?

The-White-Fang avatar Dec 03 '22 21:12 The-White-Fang

@The-White-Fang sorry I should of been clearer, I have the exact same error as @LazyAfternoons.

I have provided the usual basic props, value, onChange etc.

The TS error says I am missing the other 450+ props, same as OP

lewisd1996 avatar Dec 03 '22 21:12 lewisd1996

I am getting this error too

"react-native-ui-lib": "^6.24.0", and

"react-native-ui-lib": "^6.25.0",

robpearmain avatar Dec 07 '22 20:12 robpearmain

I am getting this error too

"react-native-ui-lib": "^6.27.1",

boonook avatar Dec 29 '22 07:12 boonook

Still getting this error "react-native-ui-lib": "^7.2.0",

chrisdrifte avatar Mar 15 '23 09:03 chrisdrifte