r/reactnative • u/tienph6m • Nov 25 '19
r/reactnative • u/TastyInternet • Dec 09 '24
Geometric scaling sheet with routing support similar to major iOS apps (GitHub repo in the comments)
r/reactnative • u/According-Muscle-902 • Jan 22 '26
I patched Skia to render 10k points at 60fps because JS loops were killing my app
Just wanted to share a little wins/optimization journey I went through this week.
I needed to render ~10,000 points on a map (moving/projection) in React Native. Standard approach? 15 to 0 FPS. The bottleneck wasn't the GPU—Skia eats 10k points for breakfast—it was the JavaScript thread.
Every frame, I was looping through a Float32Array from C++, creating 10k SkPoint objects, and passing them to the canvas. The GC went crazy, and the bridge (even JSI) choked on the object allocation.
The Fix:
I realized I already had the raw coordinate bytes in memory from my C++ module. Why bring them into JS land just to re-wrap them?
Wrote a C++ module (SpatialLayer) to project Lat/Lon -> Screen X/Y and store it in a flat float buffer.
The Fun Part: I used patch-package to modify @shopify/react-native-skia's native JSI code.
I forced `canvas.drawPoints to check if I passed a Float32Array. If yes? It grabs the raw pointer from the ArrayBuffer and passes it straight to Skia's C++ engine.
Result:
Zero JS loops during render. Zero object allocation per frame.
Went from a stuttery ~15fps to a rock-solid 60fps on Android.
It feels like cheating because I'm basically bypassing React entirely for the rendering pipeline, but damn it feels good to see it run smooth.
Has anyone else tried patching Skia for direct memory access? Feels like this should be a built-in feature for heavy visualizations.
r/reactnative • u/No_Progress3388 • Jun 12 '22
Article Implemented macOS dock in a react native app using reanimated and gesture handler.l
r/reactnative • u/Sea_Television7052 • Jun 17 '25
React Native is truly native 🔥
The new iOS 26 Liquid Glass UI integrates seamlessly with 𝝠 Expo Router — and it feels incredible.
No tweaks needed. Just native, smooth performance 🚀
I updated to the latest Xcode Beta, rebuilt my Expo project, and everything just worked.
The new iOS components now run natively in React Native with zero adjustments.
The native bottom bar created by Oskar Kwaśniewski🥳
r/reactnative • u/ShivamJoker • Jun 29 '21
I finally added some end to end testing in my app using detox 😍
r/reactnative • u/iamitkhatkar • Mar 01 '26
Expandable Linear Style Tab bar with Liquid glass effect 🚀
Built using react-native-reanimated, @callstack/liquid-glass, and react-navigation ✨
Also achievable with Expo Router + Expo Glass Effect
Inspired from Linear App
🔗 Source code:
https://github.com/iamitkhatkar/rn-expandable-tab-liquid-glass
🛠 Patched library to support SF Symbols in segmented control:
https://github.com/iamitkhatkar/react-native-segmented-control
r/reactnative • u/MrIndigo12 • Oct 04 '25
I built Caffeine Clock, the caffeine tracker app that I always wanted to exist, with Expo and React Native
Hi guys!
I would love to show you Caffeine Clock 2.0, a tracker I made with React Native and Expo that shows you your caffeine levels now and in the future, helping you have undisrupted sleep by timing your caffeine better.
A bit of context - as a guy who drinks a lot of caffeine, I wanted to make a good caffeine tracking app for a long time, since nothing I found at the time was sufficient. I wanted to make an app that would be easy to use, show you exactly when you’d have enough caffeine to not have your sleep disrupted, and could add all the drinks I usually drink, for free.
After several iterations, I am now releasing the second major version of Caffeine Clock, which is the caffeine tracking app I always wanted to build.
Some highlights:
Accurate caffeine algorithm — able to take the absorption rate and a “sipping” duration into account to actually give you a realistic estimate
Comprehensive onboarding, which (at least I hope) asks relevant questions supported by studies — those will set your caffeine half-life and sleep-safe threshold
Over 200 drinks in the database — or create your own as well
Fully offline — the data is only on your phone. No login, nothing. You can move the data from phone to phone
Analytics — including average caffeine consumption, a streak of days where your caffeine amount was good at your bedtime, drinks breakdown, etc.
Localized into five languages (some of them AI-translated; please help me if you find something weird)
Free. It is supported by ads, and there is an option to support the app and remove them.
Tech stack:
React Native and Expo, with Expo Router, all the newest version
React Native Skia and Reanimated for the graphs
Shopify Flashlist for the lists
SQLite for the local backend, with Tanstack Query to fetch it
All the data, and the images, is locally stored and bundled with the app
I would love to hear your feedback. Please, check it out for yourself and let me know what you think!
Play Store Link: https://play.google.com/store/apps/details?id=com.AWSoft.CaffeineClock
App Store Link: https://apps.apple.com/us/app/caffeine-clock-track-caffeine/id6504160396
Website: https://www.caffeineclock.app/
r/reactnative • u/iamitkhatkar • May 24 '23
Avatar/Header Transition to Dynamic Island, Built with React Native Skia! 🎨
r/reactnative • u/HoratioWobble • May 30 '25
AMA My First App is live!
Hi!
This isn't meant to be a marketing post or whatever.
My app got approved about a day a go and I wanted to share my experience building it as well as some of my technical decisions.
Firstly a story!
I'm almost 40 and I've been a software engineer for about 20 years.
I've struggled with my health for a very long time (about 10+ years now) my peak was 180kg and in 2019 I managed to get it down to 140kg.
A company I joined in 2020 absolutely decimated my health and I almost ending up having a second mental break down and gaining back all the weight I lost.
After a bit of mental recovery time, I started putting focus on my health and was sharing monthly updates covering my weight, nutrition, body mass, and exercise across social media Updates like this.
But I found that to get all the information I wanted needed like 4 apps, I had to pay to have access to my data - it was always in a terrible format and at the end of every month I had to spend time compiling everything.
It was annoying me. So, I started building Bearly Fit
My main goals were
Track everything in one place
Complete control of my data
Easily report on and export everything
Has to work mostly offline (some gyms have poor wifi / signal)
Secure
Core features should be free
Something that's friendly and fun (most other apps feel like I need to be an olympian or something to use)
So I started building Bearly Fit!
I built as much as I could in public, on Twitch and weirdly enough on LinkedIn. And the more I shared, the more people got invested in both the app and the journey.
Progress was slow and honestly I think I underestimated how much complexity is involved in building an app like this. It's deceptively complex.
October 2024, I decided to take a leap of faith and I left my contract to build full time.
The Stack
React Native (obviously)
gorhom/bottom-sheet
react-hook-form
axios
react-native-screens
date-fns
i18next
eventemitter3
react-native-background-fetch
react-native-calendars
react-native-date-picker
react-native-draggable-flatlist
react-native-fast-image
react-native-fs
react-native-keychain
react-native-pie-chart
react-native-svg
react-redux
reanimated-color-picker
react-native-toast-message
react-native-reanimated
react-native-vision-camera
Revenue Cat
It's a bare React Native project, with expo bolted on the side for updates (although I haven't tried this yet because I want to test the UX more first). When I started the project, there were still questions around native modules and support with expo so I decided not to take that route.
I also built some native modules
BearlyATimerService
A high performance timer service that doesn't need to run in the background (it maintains a local state and restores if the app ends) The app can have multiple, live timers running at once with ms updates and no performance degradation, this was important because I have multiple set timers and a global rest + duration timer running.
I did originally play with the idea of having a single timer for everything and just track individual states but this seemed prone to errors.
BearlyADatabaseService
I originally used react-native-sqlite-storage but when I came to securing it, I had a lot of difficulty implementing sqlcipher Then when I looked in to the library, I saw it was last updated 4 years ago and couldn't find a decent alternative that wouldn't give me yet another generic SQLite solution or tie me in to an ecosystem.
So I built a module, wrapped around SQLCipher which doesn't implement the full breadth of SQL but supports
indexes
foreign keys
joins
select / update / insert / delete
transactions
multi inserts
It's threaded, and also abstracts the SQL away from the code (like a query builder / very basic ORM).
So I can do code like
database.search('exerciseLogs', {
[
{ column: 'name', value: 'My Log'},
'OR'
{ column: 'dateTime', between: [Date.now(), addDays(Date.now(), 1)]},
],
sort: { column: 'dateTime', direction: 'asc', },
});
This change has meant the data is secure and it's made a HUGE improvement on performance across the app, it also gives me much better control over the experience and how we handle queries.
BearlyAZipService
I had a few issues with existing Zip packages either not supporting passwords, or doing weird things with folders. It took me all of a few hours to build this incorporating zip4j and does exactly what I need it to. Again also gives me better control over one of the key data control points.
Code Structure
I've followed a pretty standard folder structure The code base is about 1m lines of code excluding node_modules etc, with over 400 unit tests and stories.
I started implementing Detox but decided it wasn't worth the energy at this stage
components - this is all my global components
context - my global contexts
features - I split routes from features, so this is all the actual functionality
hooks - global hooks
i18n - all my translations
screens - this is all my routes
service - all my services, the bridge between features and data layers typically, or common functionality
store - redux stores
types - categorised global types
Components are usually single function, I don't like to over complicate them. They also don't typically speak to services, I like to keep them completey decoupled for reusability.
Features are made up of components, occasionally if the feature is complex enough, I'll split it in to it's own components - but they live along side the feature.
Tests and stories all live along side the thing they're testing or showcasing
Lessons learned
Context
Originally I wrapped some large areas (for example the workout sessions) inside a context and shared state, this ended up in very poor performance. I use context as intended, mostly to share props around and try to avoid state now.
Re-rendering
Another issue i've had with very complex areas, again, like the workout sessions is that sometimes you have to break out of the "React" way of thinking. No matter how much I decoupled, used memo'ing, refs - all the tricks in the book. Some areas were just too heavy.
So sparingly - I've used event emitters, I believe this is similar to how Redux works under the hood but I decided I wanted better control over the flow and so very specific areas are mostly decoupled from each others rendering cycles and independently re-render when a state changes.
When this happens, I usually create a hook which handles the "events" and export functions to emit them.
Here's a very simple example (my actual code but I've deleted all the other events)
3rd Party Libraries
I've found that many are great, until they're not. There have been a few where I've built everything around it only to find out that it's buggy or break in some conditions.
People will say "But it's open source why don't fix it?",
I'm trying to build an app, I don't have time to sit here and spend days understanding how some random creator has built their library. or how to use it in a development context to fix the issue for 0.1% of my app.
There's a lot of great people, doing great work out there. But I think it's definitely important to be cautious when looking at third party libraries and how your app will be impacted if they don't meet your needs.
Especially with the ever evolving landscape of React Native (React 19, new architecture etc), things break.
MVP / Feedback
Everyone tells you "just release", "fail fast" but personally I felt the Health app market was over saturated, there are far too many health apps. Even in this sub, I see a new app released every day.
So I wanted to release something that sets a high bar because I felt, it needs to make an impact. And also my own professional integrity (i'd like to be hired again...)
I think people ignore the Viable in "Minimum Viable Product"
If you're building something, what makes it different? what set's it apart? If you release something that's sub par, why would anyone use your app? You can't get feedback from an audience that doesn't exist.
People will argue what I've released isn't an MVP, but I've been live 2 days and already got 12 subscribers, over 200 downloads and loads of positive feedback.
Whilst I agree you shouldn't wait for perfect. What you release has to be valuable, it has to be competetive - otherwise it's just another app in an ocean of them.
Last bit
I hope this has been helpful to some people! The last 7/8 months has been an interesting experience and because this is my MVP - there's still a mountain to climb.
I still need to update the website and get the iOS app live....
Let me know if you have any questions!
And of course, if you're interested, please download the app and let me know what you think!
r/reactnative • u/Am_abdou • Jul 28 '21
My first React Native real project (source code in the first comment)
r/reactnative • u/brandnewcherry • Aug 22 '20
Built an dark mode Instagram clone with react native. Its my first react native project and it took 7 days to build.
r/reactnative • u/BumblebeeWorth3758 • Sep 22 '26
🚀 Progressive Blur (Android & iOS)
Added ProgressiveBlur to expo-backdrop ✨
🔗 Github: rit3zh/expo-backdrop
🧵 Android Preview Attached in this thread
r/reactnative • u/ExpoOfficial • Jun 18 '26
the expo-widgets library is stable now.
Building iOS widgets and Live Activities from a React Native app has historically meant a separate Xcode target, App Groups, SwiftUI layout code, and keeping that extension in sync with the rest of your app.
As of SDK 56, 𝚎𝚡𝚙𝚘-𝚠𝚒𝚍𝚐𝚎𝚝𝚜 is stable. You write widgets and Live Activities as React components with Expo UI, and Continuous Native Generation handles the Widget Extension target, the App Group config, and the SwiftUI scaffolding. There's no separate iOS project to maintain.
This is the same library that shipped as alpha in SDK 55, hardened and promoted. The core idea is unchanged: write widgets in React, let the system render them through SwiftUI, manage updates from your Expo app. What changed:
◆ Widgets and Live Activities receive their full environment through 𝚆𝚒𝚍𝚐𝚎𝚝𝙴𝚗𝚟𝚒𝚛𝚘𝚗𝚖𝚎𝚗𝚝 (widget family, content margins, color scheme, rendering mode, accessibility context)
◆ No pre-rendering in the app. The widget bundle renders independently with the context it needs
◆ Configurable widgets, so users pick what a widget shows from the gallery
◆ Better error handling
The 'widget' directive marks a function body as a widget render context. It runs in a sandboxed JS runtime separate from your main app, and the Expo UI components map directly to SwiftUI primitives, so rendering is native while your logic stays in TypeScript.
If you want a starting point: pick one piece of info users benefit from seeing outside the app, ship that widget first, then add a Live Activity if you have a flow with a clear start, active updates, and an end. Feedback and bug reports go to Discord or the expo/expo GitHub issues.
Writeup with the code sample: https://try.expo.dev/reddit-widgets
r/reactnative • u/satya164 • May 31 '21
News React Navigation 6 now has a Flipper plugin
r/reactnative • u/BumblebeeWorth3758 • Nov 09 '25
⚡ Apple Maps–Style Bottom Sheet UI in React Native
⚡ Apple Maps–style bottom sheet in React Native using TrueSheet
🔗 Github: rit3zh/expo-apple-maps-sheet
r/reactnative • u/[deleted] • Mar 21 '21
Flutter vs React Native: a principal engineer’s viewpoint (Part I)
I’m so fucking tired of this topic, of endless analysis paralysis and holywars people seem to be having, so here is my jerry can of fuel to the fire.
Disclaimer: I work as a principal engineer in a company that earns money from a mobile solution lineup. I have personally reviewed Flutter and React Native, and decided to go with the latter, but not because it is so wonderful.
Anyway.
Neither of frameworks is superior. In fact, both are garbage in one way or another. I mean, they are both brilliantly engineered, and their maintainers are really great specialists. They are garbage in the sense that neither will solve all your problems perfectly. In fact, every technology that exists out there is more or less unfit for the job you are struggling with. That’s what you get paid for: solving problems by using flawed tools to make imperfect solutions, that are simply better than no solutions at all.
Literally, stop hoping for The Perfect GUI Library, it will never exist. No kind grey bearded wizard will wave his wand and give you a magic tool that will allow you to make splendid apps in no time, and earn easy money by writing poetry in code. Anyone who tries to sell you this is preying on your naïveté. There will always be a catch.
Your job is not about that. Your job is not about making the Most Wonderful App Ever at all. Your users don’t really give a shit about what your app runs on, and even what performance you have managed to squeeze out of it. OCD clowns from Management can give you some hard time about it, but it’s likely because that particular manager has managed to disconnect themselves from the actual needs of the business and customers so much, that they have the time to holler about some minor bugs and performance hiccups you may have that are of no consequence to the users at all.
Your job as a person in Engineering is to help your business solve tasks it faces on the technological front, and to identify and take care of the most critical tasks first, and of other if you have some free time. You should worry about making things happen, not about finding the best application structure (I can’t call it “architecture”, sorry) or rewriting stuff from one framework to another.
If your business’s livelihood solely depends on your screen rendering 300 milliseconds faster, your business is up shits creek no matter what you do, because this is not a viable business scheme in the first place. If your business, on the contrary, is doing something impactful for the society, your app can be a webview running jQuery, and users will be happily using it daily.
Anyway. That was one long and boring intro. Sorry.
So, React Native and Flutter. A description is warranted of both, highlighting the most conceptually important things (and not marketing fluff that get repeated from one “highly reputable tech company’s 5-reasons-my-ass blog post” to another.
React Native: Escape Hatches and Capitalizing on prior art.
First there was React, a method of developing user interfaces that scaled amazingly well on the scale of Facebook and tons of other projects. It’s gravitas dragged in talent and created a huge and nice, if a little hectic, ecosystem around it. Lots of things sprang up from these approaches. For example, there is a wonderful library called Relay that is basically an advanced data layer that is already written for your app, provided you use GraphQL of course. React Native gets React updates almost for free. You get some of the smartest battle-tested GUI concepts like Suspense for free. You’ll soon get Concurrent Mode in all its glory. Building upon React was a design decision. It capitalized on prior art.
Naturally an idea to replace DOM entities with platform-native views came into people’s heads immediately, because native GUI frameworks are just as battle-tested as are browsers. Plus, all of the apps out there are native apps, and you can’t really adopt any technology that drags in a foreign non-native stack incrementally. Operating Native views was a design decision. It capitalized on prior art.
Leaving JS was a design decision too, because it allowed to run huge amounts of code that has already been written. Lots of libraries available in the JS ecosystem at that point were familiar with running in both browser and in the server environments. This was a design decision, that capitalized on… you get it.
React Native is all about capitalizing on prior art. It is also a very boring framework, you could literally write it yourself. When it is was unveiled, my colleague of that time, who wasn’t even a programmer, was in the process of finishing a prototyping tool with hot reloading that worked exactly like React Native would work. It is straightforward to understand, it has little magic in it, and as a senior engineer, I like it very much. I wrote patches (very rarely) for React Native because I understood how it worked.
React Native is actually full of escape hatches and customization points, sadly not all of them are documented though. It is very hackable, and projects like react-native-skia or react-native-v8 show that. Hermes shows that it can incorporate some of Flutter’s fortes like AOT compilation without breaking a sweat. JSI shows that you can call native APIs with the same performance as if you wrote it natively. And with all this you can still run Relay, soon in Concurrent Mode for Data Fetching, with Error Boundaries, Suspense and all other modern GUI engineering concepts.
That said, React Native is not an easy tool for beginners or people who seek to quickly switch from pure frontend (or pure native) development. It is utter garbage in terms of how it treats new developers. Its tooling has lots of moving parts and the official team seems not too interested in improving developer experience just one bit (it is mostly Callstack and Expo who push for that). It is not as thoroughly documented as it could be. It fails to formulate and describe its design decisions, even though they, IMO, are dirtily pragmatic and brilliant. It sometimes suffers from lack of curated libraries (again, no resources allocated on that, because an attempt was made and failed).
It should not position itself as a tool for novices, actually.
React Native is about transferring successful concepts between classic frontend engineering and native GUI engineering, not about hiding complexity. It is about scaling the concepts that your app is built upon, while aggressively incorporating and reusing everything that has been done before. It is a tool for the astute developer who questions what they are doing and why.
It is an immensely powerful idea of framework that is driven by concepts inspired by natural evolution driving forces, and while it may never become perfect, it will claw itself out of almost every problem there can be.
It can be staggeringly ugly, as some living and evolving organisms are, and it is absolutely imperfect, but it’s architecture (not to be confused with “application structure”) ultimately allows it to be improved one point at a time.
But this all are technical details. As I said in the intro, this is a ultimately only as important, as consequences for your business are. React Native will not allow you to make an app super quickly or super cheaply, but it can reduce your costs just enough to be useful, and, more importantly, it will allow you to incorporate prior art from both the JavaScript and Native ecosystems. Not only the actual code, but knowledge and concepts, which is arguably more important. You can teach JavaScript or TypeScript to any good native developer, who will bring their expertise to your team, and this knowledge will be relevant. You can bring JS frontend or full-stack people into the team by gradually introducing them into native shenanigans, and these people will bring their expertise and it will too be useful.
Ultimately, it helps immensely to have a team who can reason about the entire stack, because the worst thing you can have in a tech team in 2021 is partial blindness in some points of the tech stack and really narrow focus of some team members. It breaks team synergy, and it allows people to stop considering product in its entirety and lazily focus on their own small damp corner, all while slacking around and keeping people away from disturbing their comfort zone.
React Native is not perfect, but it enables some really powerful concepts in areas like competence management, which are beyond “writing code and making it run”.
Choosing React Native was a strategic decision for our team and we are still reaping the rewards. It was not all bright, and for some tasks we had, Flutter would have been way better. But I’ll first focus on positive sides of both and only then I’ll dive into the negative ones.
Part 2 will be about Flutter, their comparison with RN and numerous downsides of both, and Part 3 will be about my story with both and conclusions. All parts are (hopefully) coming soon…
r/reactnative • u/tokyo-spare • Apr 24 '26
I accidentally built something Huawei is now adding to their camera 👀
A few months ago, I had this simple frustration - whenever I tried taking photos, I never knew what to do with my hands or how to stand. I’d just end up doing my same pose or copying random poses from Instagram… and still look awkward.
So I started building a small app for myself.
The app helps me:
analyze the environment & vibe through the camera
It then gives me real-time poses
help me actually take better photos
Basically, an AI Assistant that tells you how to pose while you’re clicking the picture.
I’ve been working on it quietly, and recently I saw that Huawei is introducing a very similar idea in their upcoming phone camera - like pose guidance built into the camera itself.
That was a weird moment.
On one hand: “damn, big companies are already doing this 😅”
On the other: “okay… maybe this idea actually makes sense”
So yeah, I ended up building this app - PoseGPT.
It’s still early, but the goal is simple:
help people stop feeling awkward in photos.
r/reactnative • u/Tidusjar • Apr 03 '25
After 8 Years of Waiting, I Finally Built the App I Wish I Had! 🐶📲
Hey Reddit!
Eight years ago, I had an idea that never left my mind—an app to make it easier to share all your pet’s care details with sitters. As an engineer, I started many side projects over the years but never finished them. But recently, I finally got the kick I needed to bring that idea to life, and I’m proud to introduce PupDates.
https://apps.apple.com/gb/app/pupdates-pet-sharing/id6743079360
PupDates is designed to simplify sharing pet care information with sitters, whether it’s feeding schedules, medications, or daily routines. It’s all in one place, and you can even get updates and photos from your sitter in real-time.
Here’s what it does:
🐾 Share detailed pet profiles with sitters
📸 Get updates with photos and notes
🚶♂️ Track walks and care activities
This idea became even more personal when my dog, Bruce, was diagnosed with IVDD, requiring extra care. It’s been a huge help for me, and I hope it can make things easier for others in similar situations.
Would love to hear your thoughts—especially if you’ve ever struggled with organizing pet care for sitters. How do you keep track of everything? Feel free to ask any questions or share your experiences!
r/reactnative • u/jsheffers • Apr 08 '24