SIGN IN SIGN UP

fix: prevent crash when `KeyboardChatScrollView` unmounted (#1485)

## 📜 Description

Fixed a crash on Android when using `KeyboardChatScrollView`.

## 💡 Motivation and Context

We may schedule a call to perform `scrollTo` later. But if the component
is unmounted, then we will get a crash.

In this PR I'm adding a check to skip `scrollTo` operation if view was
unmounted.

Based on https://github.com/bluesky-social/social-app/pull/10673

## 📢 Changelog

<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->

### JS

- skip `scrollTo` if ref is null;

## 🤔 How Has This Been Tested?

There is no way to test it at the moment, but CI is green 🟢 

## 📸 Screenshots (if appropriate):

<img width="808" height="298" alt="image"
src="https://github.com/user-attachments/assets/380c610f-3dd0-44e0-b9e0-118d44b42ae8"
/>


## 📝 Checklist

- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
K
Kirill Zyusko committed
62ea262c387a11c71a893ff935ca8b642b0d90de
Parent: bd48253
Committed by GitHub <noreply@github.com> on 6/4/2026, 8:46:32 AM