You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in my use case, this error happens when I switch between clicking on TextInputs that are sometimes disabled (since I want the look of a text input, but use an onPress to interact with instead). I'm wondering if your code would not be able to read it if it's disabled, and if that is why it's returning that type error? Otherwise I guess just finding a solution where you confirm that currentlyFocusedInput exists, eg currentlyFocusedInput?.measureInWindow
The text was updated successfully, but these errors were encountered:
Hello @jacquesdev and thank you for reporting this issue!
I have tried to add a disabled text input in the example app (I have committed this change so you can test yourself 🙂) but I did not reproduce the error. Perhaps you are using an older version of react native ?
Anyway, I have published a new version by adding your suggested fix with a safety operator, as it does not cost anything. Does it solve your issue?
I'm experiencing an issue on this line:
react-native-keyboard-scrollview/src/KeyboardScrollView.tsx
Line 64 in 62eced0
I'm getting this error: TypeError: Cannot read property 'measureInWindow' of null. That means this line
is returning null
Now in my use case, this error happens when I switch between clicking on TextInputs that are sometimes disabled (since I want the look of a text input, but use an onPress to interact with instead). I'm wondering if your code would not be able to read it if it's disabled, and if that is why it's returning that type error? Otherwise I guess just finding a solution where you confirm that currentlyFocusedInput exists, eg currentlyFocusedInput?.measureInWindow
The text was updated successfully, but these errors were encountered: