I'm experiencing an issue on this line:
|
currentlyFocusedInput.measureInWindow((_x, y, _width, height) => { |
I'm getting this error: TypeError: Cannot read property 'measureInWindow' of null. That means this line
const currentlyFocusedInput = TextInput.State.currentlyFocusedInput();
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
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