r/reactnative • • 19h ago

Question Shared Element Transitions are stable in Reanimated 4.8. What's your experience so far?

Thumbnail
swmansion.com
22 Upvotes

Hi everyone,

I'm Oskar from Software Mansion. About a week ago we released Reanimated 4.8 with stable Shared Element Transitions. They're now on by default (no more feature flags!) and I'm very eager to hear if you managed to try it already and what your experience with SET is so far!

In case you missed it, a quick summary of what landed:

  • Transitions animate the actual shared view itself (not a copy/snapshot), so live content like videos stays continuous
  • Use sharedTransitionTag + SharedTransitionBoundary - works with any navigator or even no navigator at all
  • Customize with sharedTransitionStyle (duration, spring, fadeContent(), custom worklets, progress animations, etc.)
  • Better support for native stacks, modals, sheets, back gestures, scrolled lists, and more.

The blog post linked above may give you more details if you're interested!

Docs: https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/overview/

Have you tried them yet? What worked well and did something feel off? Did the new customization options solve something for you? And what use cases are you most excited about, or perhaps still blocked on? All feedback helps!

Thanks a lot and enjoy!


r/reactnative • • 16h ago

News This Week In React Native #307: Reanimated, Worklets, Expo, Skia, WebGPU, Unistyles, Legend List

Thumbnail
thisweekinreact.com
4 Upvotes

r/reactnative • • 21h ago

FYI Heads up if you use three.js with expo-gl: r187 broke my app on Hermes (FinalizationRegistry)

3 Upvotes

Lost an evening to this, posting in case it saves someone else.

I bumped three from 0.186 to r187 in an Expo SDK 57 app (RN 0.86, three on expo-gl). The web build was fine and every test I had passed in Chrome. On an Android build the 3D view just fell through to my error screen.

The cause: r187's WebGLRenderer creates a FinalizationRegistry, and that isn't there on Hermes in my build. Chrome has it, so nothing I ran in a browser could catch it.

What I ended up doing:

  • pinned three to ^0.186.1
  • added a small node test that reads node_modules/three/build/three.module.js (plus three.core.js and three.cjs) and fails if it finds new FinalizationRegistry or new WeakRef. Now the next version bump fails in CI instead of on a phone.

A polyfill loaded before three would probably get you onto r187+, I just didn't want to ship one without proper device testing.

Bigger lesson for me: browser tests don't tell you much about Hermes. Anything that touches newer JS built-ins needs a quick check on a native build.

Is anyone running newer three on Hermes already? Curious if a polyfill was enough or if more broke behind it.


r/reactnative • • 11h ago

Real-time 3D exercise demos in React Native, ~1 KB of code per exercise

2 Upvotes

Saw the stickman exercise post going around and wanted to share how I solved the same thing differently in my fitness app (Expo + three.js).

Same goal: I didn't want people leaving the app to check form on YouTube, and I didn't want to ship hundreds of MB of videos.

What it does. Each exercise plays a rigged 3D athlete doing the rep on the actual machine. You can drag to rotate around it and pinch to zoom, and the muscles being worked glow.

How. The trick is that almost nothing is a file. There's one rigged character model (~1 MB) and the rest is code. Each movement is a small spec (four phases, grip, camera angles, which muscles to light up) plus a function that poses the skeleton at any point in the rep. All 31 pieces of gym equipment, racks, cable towers, leg press, pec deck, are built from basic shapes in code. No model files for any of them.

Size. 100 exercises live right now. All the 3D code together is ~123 KB compressed, so roughly 1 KB per exercise, plus the one-time character.

Trade-off. It's heavier than a stickman (that 1 MB model, and it needs a GL view), but you get a real human on real equipment, which helps more with stuff like grip and bench angle.

Rendering is expo-gl + three.js.

Would love feedback, good or bad. Especially: does the realistic look help you, or would you rather have something simpler?


r/reactnative • • 20h ago

I made a short "airport X-ray" video about what code review misses in a release build (and the free tool behind it)

2 Upvotes

My release had two approvals and every check green. The built app still contained a live secret key, a staging API URL, a preview EAS Update channel and a staging app link.

None of those were in the diff anyone reviewed. They get put in at build time, by env variables, app.config and config plugins, so they only exist in the final .ipa / .aab.

I made this little video to show the idea: the build is the bag, and nobody scans it before it boards.

The tool behind it is release-lint, which I wrote. It opens the built file on your machine and reports:

- secret keys in the JS bundle or Expo config (publishable keys are ignored)
- localhost, LAN and staging hosts
- staging domains in associated domains / App Links
- a non-production EAS Update channel
- debuggable or development-signed builds

Run it in your project:

npx app-release-lint

Free, open source (MIT), zero dependencies, nothing is uploaded.

https://github.com/harpreetkbadhan/release-lint

Which release mistake has bitten you that it should catch next? Several of the current checks came from comments on my last post here.


r/reactnative • • 15h ago

rn-audio-toolkit – React Native audio playback and background audio handling

1 Upvotes

Hey everyone,

While working on React Native projects, I came across several audio-related requirements, such as background playback, lock-screen controls, audio interruptions, waveform visualization, caching, and playback management.

I noticed that these features often need to be handled separately, especially when working on music players and learning applications.

I recently came across an approach to bring these common audio features together in a reusable package called rn-audio-toolkit.

Some of the supported features include:

  • Music playback, replay, auto-play on skip, and track transitions.
  • Background playback with lock-screen and notification controls.
  • Audio interruption handling.
  • Waveform visualization, caching, and preloading.
  • Playback speed and volume control.
  • Custom notifications with album artwork and track details.
  • Presets for MUSIC, PODCAST, LEARNING, and EXAM.
  • TurboModules support for the New Architecture and compatible legacy setups.

Sharing the package here in case it's useful to anyone working on React Native audio functionality.

Would be interested to hear how others handle audio playback and background audio in their React Native projects.

Links:
https://www.npmjs.com/package/rn-audio-toolkit?activeTab=readme
https://github.com/pawan3008/rn-audio-toolkit


r/reactnative • • 17h ago

Show Your Work Here Show Your Work Thread

1 Upvotes

Did you make something using React Native and do you want to show it off, gather opinions or start a discussion about your work? Please post a comment in this thread.

If you have specific questions about bugs or improvements in your work, you are allowed to create a separate post. If you are unsure, please contact u/xrpinsider.

New comments appear on top and this thread is refreshed on a weekly bases.


r/reactnative • • 18h ago

Questions Here General Help Thread

1 Upvotes

If you have a question about React Native, a small error in your application or if you want to gather opinions about a small topic, please use this thread.

If you have a bigger question, one that requires a lot of code for example, please feel free to create a separate post. If you are unsure, please contact u/xrpinsider.

New comments appear on top and this thread is refreshed on a weekly bases.