Skip to content

Remove turbo image - #13539

Merged
raymondjacobson merged 2 commits into
mainfrom
rj-image
Jan 2, 2026
Merged

raymondjacobson merged 2 commits into
mainfrom
rj-image

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

I don't think I trust the package enough for prod

duguyihou/react-native-turbo-image#425

@changeset-bot

changeset-bot Bot commented Jan 2, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6fbf490

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okie :/

@raymondjacobson
raymondjacobson merged commit bc28163 into main Jan 2, 2026
6 checks passed
@raymondjacobson
raymondjacobson deleted the rj-image branch January 2, 2026 21:12
dylanjeffers added a commit that referenced this pull request Oct 19, 2026
…ss (#14678)

## Summary

`MainActivity.onDestroy` emitted `ForceQuitDetected` through
`reactInstanceManager.currentReactContext`. With the New Architecture on
(1.5.189), `ReactActivityDelegate` builds its `ReactDelegate` from a
`ReactHost` only. `ReactDelegate.getReactInstanceManager()` then throws
`IllegalStateException("Cannot get ReactInstanceManager without a
ReactNativeHost.")`, so every destroy that isn't a configuration change
crashes the process.

The likely trigger is the activity being destroyed while `MusicService`
keeps the process alive: swiping the app out of Recents during playback,
or the system reclaiming the activity in the background. Either way it
kills playback.

Nothing in JS has listened for `ForceQuitDetected` since #13539, so this
removes the override (and its two imports) instead of porting it to
`ReactHost`.

Same class of bug as the RNTP bridgeless fix (#14647). This was the only
other `reactInstanceManager` use in our Android sources, and the iOS
sources have no bridge-only calls.

## Shipping

It's a native-only change, so it ships in a native build. It's based on
main, so it can go into a 1.5.189 rebuild if 1.5.189 isn't submitted
yet, or otherwise into 1.5.190. Once 1.5.189 has some Android users,
look in Play Console › Android vitals for `IllegalStateException` in
`ReactDelegate.getReactInstanceManager` / `MainActivity.onDestroy` to
confirm the impact.

## Test plan

- [ ] Android release build: play a track, swipe the app out of Recents,
and check logcat for `MainActivity.onDestroy` / `IllegalStateException`
- [ ] Developer options › "Don't keep activities": background the app
and return to it, with no crash

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants