Skip to content

Speed up screen transitions and fix local builds on JDK 25#53

Merged
dfalling merged 1 commit into
mainfrom
speed-up-transitions
Jun 12, 2026
Merged

Speed up screen transitions and fix local builds on JDK 25#53
dfalling merged 1 commit into
mainfrom
speed-up-transitions

Conversation

@dfalling

Copy link
Copy Markdown
Owner

Summary

  • Page transitions (map → details → edit and back) now run at 150ms instead of 400ms. react-native-screens hardcodes Android slide animations to config_mediumAnimTime and ignores react-navigation's animationDuration on Android, so the four rns_slide_* anim XMLs are overridden in the app module via Android resource merging. A pointer comment in RootNavigator.tsx links the JS config to the XMLs.
  • Fixes bun run android failing at configureCMakeDebug on JDK 25: AGP forks the prefab CLI, whose bundled JNA triggers the JEP 472 restricted-method warning on stderr, and AGP treats any unrecognized prefab stderr line as fatal. JAVA_TOOL_OPTIONS=--enable-native-access=ALL-UNNAMED in mise.toml's [env] silences the warning in all forked JVMs; AGP explicitly whitelists the resulting "Picked up JAVA_TOOL_OPTIONS" line. Can be removed once the upstream AGP fix (b/469503601) ships in a release.

Verification

  • :app:mergeDebugResources confirms the app-module anim resources win the merge over the library copies.
  • ./gradlew assembleDebug passes locally on JDK 25 (previously failed at CMake configure).
  • tsc, biome, and jest all pass.

🤖 Generated with Claude Code

Stack transitions felt sluggish: react-native-screens hardcodes Android
slide animations to config_mediumAnimTime (400ms) and ignores
react-navigation's animationDuration on Android. Override the four
rns_slide_* anim resources in the app module (resource merging beats the
library's copies) to run at 150ms.

Also fix `bun run android` failing at configureCMake on JDK 25: AGP's
forked prefab CLI triggers the JEP 472 restricted-method warning via JNA,
and AGP treats any unrecognized prefab stderr as fatal. Set
JAVA_TOOL_OPTIONS=--enable-native-access=ALL-UNNAMED in mise.toml's [env]
— AGP whitelists the resulting "Picked up" line — until the upstream fix
(b/469503601) ships in an AGP release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dfalling dfalling enabled auto-merge (squash) June 12, 2026 22:17
@dfalling dfalling merged commit 39001d6 into main Jun 12, 2026
2 checks passed
@dfalling dfalling deleted the speed-up-transitions branch June 12, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant