Skip to content
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

fix(Android): move calls to start transition to UI thread to prevent possible crash in prod #2532

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Nov 21, 2024

Description

Fixes #2530

Please see the code changes for the description, I've written some important comments there into the code.

Changes

If startTransitionRecursive is not called from UI thread we now schedule the actual work onto the UI.
Otherwise the job is done synchronously.

Test code and steps to reproduce

Seems to work just fine in FabricExample

Checklist

@kkafar kkafar force-pushed the @kkafar/move-calls-to-start-transition-to-ui-thread branch from 8cfebd8 to dfa3a66 Compare November 22, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant