douglasjunior / react-native-keyboard-manager

⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
https://www.npmjs.com/package/react-native-keyboard-manager
MIT License
934 stars 60 forks source link

Cannot read property 'then' of undefined. #99

Closed rkz98 closed 1 year ago

rkz98 commented 1 year ago

Hey! I got an error after updating to the latest version (6.5.4-5).

IMG_3437

-> Temporary solution: Added question mark before .then() function.

rkz98 commented 1 year ago

Btw, In the past version (6.5.4-4), the methods weren't a promise were just void.

douglasjunior commented 1 year ago

You are right, the types are incorrectly.

The only method that should return a promise is the isKeyboardShowing(): Promise<boolean>.

Fixed in version 6.5.4-6.