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 • • 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 • • 9h ago

I'm not a full-time developer. I built and shipped a voice-powered cricket app with Claude Code

0 Upvotes

Day job is program management, not coding. But I wanted an app for my own cricket, so I built Knockmate.

Stack: Expo / React Native, on-device speech recognition, RevenueCat for the Pro upgrade, no backend at all.

What actually worked for me:

- Asking for full replacement files, not patches. Far fewer copy-paste mistakes.

- Getting Claude to write tests for everything. I now have 60+ test files, and they've caught loads of regressions before a build.

- A release-check script that says READY or not before every build.

What vibe coding didn't save me from:

- A purchase bug where users paid but Pro stayed locked. It came down to one name not matching in RevenueCat.

- App store admin: agreements, closed testing, privacy forms and age ratings.

Live on both stores now:

iPhone: https://apps.apple.com/app/id6778156278

Android: https://play.google.com/store/apps/details?id=com.batknock.app

Full story: [article link]


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 • • 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 • • 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 • • 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.