-
Notifications
You must be signed in to change notification settings - Fork 644
Safe getScrollResponder #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
It does look safer with this changes, but I'd like to know why |
|
I think it is in setTimeout thing. Sorry do not have full stacktrace.
…Sent from my iPhone
On Apr 5, 2017, at 6:22 AM, Swordsman-Inaction ***@***.***> wrote:
It does look safer with this changes, but I'd like to know why this.refs._rnkasv_keyboardView becomes undefined.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@yury |
|
@yury Awesome!!! I debugged with your code, and I already find the cause.
So we found the cause :) ! This PR could prevent the app from crashing for sure, but it also covers the real problem we have. The solution for this could be adding unmount-checking in the callbacks. Would you like to update this PR or create another PR to solve the problem? |
|
This isMounted? |
|
@yury Yes, I know it looks bad. I thought about doing some clean in the |
|
In the meantime, I think this PR makes sense. |
|
I looked at react native FlatList they do similar thing thing PS: Do you plan to refactor and do not use mixins? |
|
@yury yes, it's on my roadmap but I'm busy as hell right now. |
In our app redux can switch navigation when input is in focus.
When this happen we get crash:
This PR make getScrollResponder a little bit safer.