CEO @margelo_com – core contributor @reactnative – angel investor - wannabe racing driver - I built VisionCamera, Nitro Modules and react-native-mmkv

Vienna, Austria
Replying to @JeffTutorials
gear shifter, because it's easier to find than to aim for a 4cm wide area on a fully flat surface.
11
27
5,922
119,045
haven't touched web dev in a while, am i doing this right?
141
276
4,392
163,996
ByteDance just launched Lynx – a competitor to React Native!
85
218
2,943
318,101
After 4 months of hard work, we just finally launched react-native-filament!!!!!!!!!!!! 🥳🚀 Check out margelo/react-native-filament, and build amazing 3D react-native apps today! 🚀
40
162
1,464
103,630
React Performance Tip #12: Since modern CPUs are square, format your code to exact squares to make sure it fits on the CPU as efficiently as possible. This ensures that the CPU can directly execute the optimized format and will execute code much faster! 🤯
33
99
1,389
67,205
Replying to @Mattoid2k @eshita
pretty sure it is, sounds very sarcastic to me
1
2
1,202
yooooo the @discord mobile app uses my library!! 😍😍
26
18
1,301
132,675
Built with VisionCamera. All the drawing and blurring is happening with JavaScript code, and it runs in realtime. No post-processing. This is going to change the entire mobile camera game. Get ready.
42
134
1,253
183,330
We'll launch react-native-filament this week - a blazingly fast physically based 3D rendering engine built with C++ for React Native! 🚀 As a teaser, here's a 47 line component to load a 3D model from the web, render it and rotate, pan and zoom into it using gesture handler! 🤯
52
132
1,199
78,810
Replying to @KevinNaughtonJr
-releases updates (why not just write it perfect first try?)
7
16
1,192
129,962
React Native made my dreams come true - I bought my dream car! I want to thank everyone who put their trust in me and my skills. ❤️ See y'all on the race track!
61
53
1,161
This is a React Native app running on my Mac, which uses my iPhone as a remote Camera over the air. 🤯 All made possible by react-native-vision-camera!
25
66
969
79,944
.@lauridskern and I rebuilt Doodle Jump in React Native — the main game loop runs in a Reanimated useFrameCallback(), and everything renders using Skia. Runs pretty smooth! 🤩
49
53
992
131,089
yooooo the @SpaceX @Starlink app uses my library 😍😍
26
42
907
104,619
Replying to @theo @t3dotgg
"wait wdym we can't use Wix to build our platform"
6
6
843
47,197
my hands look like this so her hands can look like that
12
33
743
85,131
Finally got something to show - we're working on a new 3D library for React Native! 👀🧊 👉 Powered by native Graphics APIs (Metal/Vulkan) 👉 Full control over rendering in JS 👉 120 FPS rendering on a Worklet Thread (no lags!) 👉 Supports hotswapping .glb/.gltf models
53
77
717
86,167
Replying to @josef__wilhelm
flutter for web? thanks i'd rather shoot myself in the foot
9
3
661
43,112
This is an object detector model running in React Native VisionCamera. I am looping through all the output data and drawing red boxes using simple JavaScript - even the model can be hotswapped! All of this while still running at more than 60 FPS 🤯 - no more native code!!
27
59
664
93,964
Working on an all new way to write native code for React Native. "Nitro Modules" will provide first-class Swift support, insanely fast C++ bindings, object-oriented/instance-based approach, and much more coming soon! stay tuned 👀🤫
25
34
444
38,715
Just built a Night Vision App using react-native-vision-camera V5 🌑
34
22
719
96,370
sorry france.
13
3
601
23,361
🧵 #ReactNative Performance Pro Tip 🔥💡: If you are building a #ReactNative app that works with Crypto, Big Numbers or Buffers make sure you are using the right libraries - otherwise your app will be slow asf! 😷 (a thread) (1/5)
5
57
533
(1/5) I'm super excited to announce 𝗿𝗲𝗮𝗰𝘁-𝗻𝗮𝘁𝗶𝘃𝗲-𝗻𝗶𝘁𝗿𝗼-𝗶𝗺𝗮𝗴𝗲 - an all new Image component for React Native, built entirely with Nitro Views! 🖼️🥳🚀
32
71
593
62,537
this is NOT react native
41
23
550
68,631
My PR is now shipped in React Native 0.79 - Android apps now start ~12% faster! 🔥
React Native 0.79 is now available! This release includes several performance improvements. Metro is now >3x faster to cold start! Android apps will also be faster thanks to changes to JS bundle compression. reactnative.dev/blog/2025/04…
9
15
557
23,158
me working on iOS vs working on Android
19
47
532
40,564
Nobody is more impatient than someone who uses your open source library for free.
8
6
520
65,724
twitch is open source now
12
36
504
VisionCamera V3 is up to 𝟳𝘅 faster than V2 because of performance improvements like: - New CameraDevice selection API (no await) 🚀 - Rewritten native codebase (cleaner & faster) 🧹 - Single-hardware-locking for configuration batches (instant updates) 🔒 - ..and more!
14
41
489
67,335
The power of VisionCamera's write-back Frame Processors: I detect all faces in a Frame, then immediately censor them out using a simple frame.drawRect(..) call - all in JavaScript! 🤯 This is running in real-time, and with a faster model (like BlazeFace) it can run at 200+ FPS 🔥
8
40
479
Please don't do this. This would kill optimizations/memos. You'd rerender everything for a simple change
Use one object instead of a bunch of primitives. const [formState, setFormState] = useState(initialState) Problem solved.
39
12
468
112,042
I just released VisionCamera V4!!!!!! 🥳🚀💪🤯🔥👏 This one's a big release. With V4 you can draw directly onto a Camera Frame using Skia!!! ..and also, I fixed pretty much all Android issues from V3. 😉 github.com/mrousavy/react-na…
16
45
466
22,455
heatmap of react native agencies
office pizza party (unpaid) for whoever can tell me what metric this map is visualizing
13
10
472
26,125
Is React Native easy? yes yes yesyes yesyes yes yes yes yes yes yes yes yes yes yesyes yes yes yes yesye yes yes yes yes yesyes
20
25
454
28,331
⚠️ react-native-camera has now been deprecated in favor of react-native-vision-camera 🎉
13
55
455
react-native-graph v1 is out! Tons of performance improvements and rewritten drawing logic to make it more flexible 🔥
12
33
451
41,135
still can't believe how smooth VisionCamera + Skia is - this face blur Skia filter runs in a JS Frame Processor at 120 FPS!
14
18
441
34,423
i met mr. "can it be done in react native"
23
4
436
16,208
I'm going back to React Native
25
5
429
28,405
ah yes, a youtube link. let me just open the in app browser, then safari, then youtube to watch it
12
16
388
60,016
Replying to @8Pit_
my bad 1,57 inches in freedom units
2
339
13,467
In 2021 I built react-native-mmkv In 2022 I built VisionCamera V3 In 2023 I built VisionCamera V4 In 2024 I built Nitro Modules What's next for 2025?
27
4
391
21,173
I just released react-native-fast-tflite!!! 🥳 🔥 Powered by JSI/C++ 💨 Zero-copy ArrayBuffers 🔧 Uses the low-level C/C++ TFLite core API 🔄 Supports fast-refresh for swapping out .tflite models at runtime 🖥️ Supports GPU-acceleration github.com/mrousavy/react-na…
16
42
369
28,320
easy choice
21
20
385
15,181
Many React Native devs don't know how to get relevant log or crash information for creating issues in open source libs, so here's some tips for y'all! 💡 First; There's multiple types of crashes. 1. In JS there's mostly just Errors which have a message and a stacktrace. Those are easy and can be thrown and caught. The stacktrace shows you where the error originated from (function names file names and even line numbers!) 2. On Android, you'll get Java Exceptions, which are pretty similar to JS-errors, they also have stacktraces (often looks like com.mrousavy..camera.CameraView) 3. On iOS, you'll get NSExceptions (often looks like *** NSInvalidArgumentException: something) which have a code, domain and optionally a user info, but no stacktrace. 4. On both iOS and Android you might also get C segfaults (eg "SIGABRT") which are coming from a LLVM-based language like C or C++. They are not handle-able and crash the app because the code tried to do something which is not possible (eg tried accessing memory which already has been deleted). 👉 For JS and Java errors, always post the stacktrace. 👉 For NSExceptions, always post the exception name (NSInvalidArgumentException), code (helps googling), and domain/message. 👉 For segfaults (eg SIGABRT), run the app in Xcode/Android Studio with a debugger attached (Xcode; just run, Android Studio; press the 🐞 icon), and when the app goes into a segfault you can see a stack trace on the left side of the screen. You can even interactively step through this to see where it is coming from, often you just need to step a few methods back to find the caller. Also, native logs are needed for more info. They are not in Flipper or React Dev Tools, they are inside Xcode (bottom logs tab) or Android Studio (logcat window). Paste them along with your crash info to give more information.
6
46
372
26,335
imo this is why this approach is wrong and makes it insanely difficult to find something in a project. same for 'index.js'.
📄📄📄📄📄📄📄📄📄📄📄📄📄📄📄📄📄📄
43
22
345
103,406
WWDC 2024 demonstrated once again why native frameworks like React Native are just better than custom frameworks like Flutter. Features like the text summary will be baked into UITextView, and a React Native app will support it from day 1.
8
36
334
42,745
Use react-native-mmkv, it is the fastest key/value storage solution for React Native! 🔥
Offline mode using react query and rn mmkv is INCREDIBLE! My app's speed is doubled – when I open the app, everything loads instantly. And the beautiful part is that you just need to add a few lines of code and it WORKS! Awesome job @mrousavy @TkDodo 🙌
8
34
338
32,080
should I do react native youtube videos?
55
5
302
React Native + native-vision-camera is pretty much as fast as a fully native Camera app.
12
17
292
26,792
• TurboModules, Fabric and faster bundlers coming soon • Camera Frame Processing, 2D Skia Graphics drawing and 60 FPS Animations straight from JS • Easy Swift/Kotlin Native Modules abstraction coming soon (@expo) #ReactNative is about to become a whole lot more interesting
6
36
291
don't wanna build up too much hype but I'll post a video soon that'll make every single one of you go: 😳😍😲 #ReactNative
17
18
297
Good news! My PR to react-native core for smooth, interactive keyboard dismissal in ScrollViews now landed on master again! 🎉🎉 Can't wait to see my change in the next #ReactNative release 🤩
12
14
302
i should touch some grass
12
4
289
14,910
You're probably having a lot of unnecessary re-renders in your #ReactNative app 🥶🥶🥶 There's a simple flip you can switch to greatly improve the overall performance and responsiveness of your app and here's how you can switch it on. 🚀💨 (1/4)
4
51
296
Update: We got it running at 60 FPS now ;)
11
14
294
JSI is amazing - I'm passing the whole audio sample buffer to JavaScript and then run an algorithm that determines the average "loudness" of the audio in realtime (in JS!) 🤩 can anyone guess what song this is? #ReactNative #javascript @expo
13
30
298
Just released VisionCamera 3.0.0-rc.4! 🎉 - Full rewrite of the C++ codebases 😅 - New hook: useSkiaFrameProcessor 🔗 - Frame Processor Plugins are now object-oriented 💪 - Android now works! 🤖 - Frame Processors are now fully optional! ⛓️ github.com/mrousavy/react-na…
4
26
291
20,032
My `automaticallyAdjustKeyboardInsets` PR has landed in React Native core!! github.com/facebook/react-na… Y'all excited to finally have smooth interactive keyboard swipe-down in #ReactNative lists?
17
12
285
Shopify, a billion dollar company bets on React Native - and you should too.
It’s been a while since we’ve done an update on @shopifyeng + mobile + @reactnative, so let’s do it. shopify.engineering/react-na… A thread 🧵
30
288
27,013
now it's running at 60 FPS 😍
18
7
284
34,751
I'm excited to announce that we just published react-native-quick-crypto - a new library for #ReactNative that implements NodeJS' crypto library in native C++/JSI! 🥳🎉🚀 We measured up to 58x speedups in certain cryptography functions, check it out: github.com/margelo/react-nat…
10
45
280
Benchmark time - ObjC TurboModule vs Swift Nitro Module... 😳🥵 - TurboModules: 220ms - Nitro: 29ms 🔥
14
20
287
18,579
git commit hooks are stupid and should never be used.
43
6
286
37,141
These Reanimated gestures are just so damn smooth 😍 @swmansion
6
9
275
47,235
finally! 🤩👏
6
14
276
12,305
React Native Pro Tip: you can use Terminal escape codes to print to 𝚌𝚘𝚗𝚜𝚘𝚕𝚎.𝚕𝚘𝚐 with color, background, or even as bold text! 🔥
11
23
264
15,024
thanks for having the margelo boys over at the vercel office ▲ @rauchg @tomocchino
4
6
274
20,549
I'm working for @expo now 🚀🚀🤩 exciting things coming soon
37
3
270
JSI allows JavaScript to directly call native C++ code. #ReactNative's new UI Manager "Fabric" uses JSI to render views even faster - it's powered by the native C++ Layout Engine "Yoga". Yoga layouts views ~7 times faster than AutoLayout, the layout engine for native iOS apps.
7
34
263
Tailwind CSS is the worst thing to happen to CSS.
Tailwind CSS is the best thing to happen to CSS.
48
13
263
51,213
Part of being an app developer is running to your local tech shop just to find a phone that can reproduce a rare crash by running a custom .apk on each one of them 😅📱
23
14
268
17,003
Swift is coming to Android!!! 😳🥳
Announcing the Swift on Android Working Group, with the goal of establishing and maintaining Android as an officially supported platform for Swift. More here: forums.swift.org/t/announcin… #Android
11
9
262
23,847
Friendly reminder to clean your Xcode cache from time to time 😅
13
15
258
14,221
Fun little demo built with VisionCamera and Skia Frame Processors 👋
7
9
260
16,025
just did a talk at React Native Berlin about VisionCamera + Skia - thanks for having me @hubraum! 💪🇩🇪
7
5
256
9,300
ExpoModules vs TurboModules vs NitroModules 🔥 In the 𝚊𝚍𝚍𝙽𝚞𝚖𝚋𝚎𝚛𝚜(...) benchmark, NitroModules is 𝟱𝟵𝘅 𝗮𝘀 𝗳𝗮𝘀𝘁 as ExpoModules and 𝟭𝟱𝘅 𝗮𝘀 𝗳𝗮𝘀𝘁 as TurboModules! 🤯
16
19
259
18,605
VisionCamera now has an @expo config-plugin to easily enable the fully native QR/Barcode scanner! 🔍 Simply set 𝚎𝚗𝚊𝚋𝚕𝚎𝙲𝚘𝚍𝚎𝚂𝚌𝚊𝚗𝚗𝚎𝚛 to 𝚝𝚛𝚞𝚎, and you're all set! ✅
4
23
258
17,292
spent the past few weeks being hyper-focused on learning SwiftUI - Code w/ SwiftUI 10h a day - Watch 3+ WWDC videos a day - Read all Apple docs - Browse apple developer forums - Build all things from scratch - Don't rely on AI Can recommend.
15
6
252
21,842
gotcha @openai
7
16
247
I just released ShadowLens to the AppStore!!! 🥳🥳 Download now: apps.apple.com/at/app/shadow…
22
17
249
36,247
this is an absolute game changer for the entire JavaScript industry. get ready
We wanted to show the performance and the insane power of the Static Hermes native FFI. But we don't yet support the all language features needed to compile React Native (soon though!), so we improvised. We imported the bindings for DearImGui (a popular C++ imperative game UI library that renders meshes), and Sokol (an amazing lightweight 3D backend in C) and wrote a small demo. "Imperative UI" means that the entire UI and the state of the screen is recreated on every frame, which suits our purposes to demonstrate SH very well. The demo runs 100% compiled native code. JavaScript runs in every frame and recreates the entire state of the screen. It is portable to all platforms, though the screen layout is not optimized for phone. We wrote the demo in C++ and in JS, to compare, and they both ran with the same performance. In the attached videos you can see the demo running at the stable screen refresh rate - 120Hz on my Mac, 60Hz on a old Moto G5 phone. It includes some widgets, an n-body simulation of planets, a playable game demo, etc.
7
15
242
32,343
i'm in the react native docs - again! 🤓
10
1
245
6,329
gm, here's a smooth rounded graph with 200 data points running at 60 FPS with React Native Skia 👏 (built for @PinkPandaDefi at @margelo_io) @ShopifyEng
8
23
240
A pro tip: Read "Effective Modern C++". Even if you're not a C++ developer, this book will help you understand how memory management works and believe it or not this affects how you think about React (Native). In fact that's the only programming book I ever read
4
27
238
VisionCamera reached 7k stars on GitHub!! 🥳🚀 road to 10k
7
5
230
7,633
As a React Native developer you at least need to understand how to read Logcat/Xcode logs. Nothing ever crashes silently.
10
18
231
24,195
this is gonna be interesting 👀
14
3
238
27,863
VisionCamera now has an integrated, blazingly fast QR-code/Barcode scanner! 🤯 github.com/mrousavy/react-na…
13
17
233
18,760
VisionCamera V5 will be 50% smaller than V4! 🤯 I achieved this major optimization by removing Android support!
22
2
235
14,700