hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
1k stars 173 forks source link

Errors in components #53

Closed jmstart-up closed 2 years ago

jmstart-up commented 2 years ago

Issue: When I am running code inspection there are several issues reported:

Errors:

node_modules/react-native-element-dropdown/src/Dropdown/index.tsx:363:7 - error TS2531: Object is possibly 'null'.

363 ref.current.measure((width, height, px, py, fx, fy) => {


node_modules/react-native-element-dropdown/src/MultiSelect/index.tsx:348:7 - error TS2531: Object is possibly 'null'.

348       ref.current.measure((width, height, px, py, fx, fy) => {

node_modules/react-native-element-dropdown/src/useDeviceOrientation.ts:41:24 - error TS2339: Property 'remove' does not exist on type 'never'.

41 if(susbcription?.remove){


node_modules/react-native-element-dropdown/src/useDeviceOrientation.ts:42:22 - error TS2339: Property 'remove' does not exist on type 'never'.

42         susbcription.remove();

Found 4 errors.

hoaphantn7604 commented 2 years ago

Hi @jmstart-up , I’m working on it.

hoaphantn7604 commented 2 years ago

What is your RN version?

SmartArray commented 2 years ago

This happens with Typescript v4.6.2