r/reactnative • • 3d ago

[Experiment] Controlling an iOS Simulator from an Android phone

Hey r/reactnative,

I've been experimenting with something new lately.

The idea is to control an iOS Simulator running on my Mac directly from an Android phone's browser.

You just scan a QR code, connect over Wi-Fi, and the simulator shows up on your phone. No extra app installation needed.

I've got the first version working at around 30–40 FPS. Still figuring out how to push it closer to 60 FPS and make the experience smoother.

Here's a quick look at where it's at.

I'm curious, would you find something like this useful in your React Native workflow?

94 Upvotes

16 comments sorted by

2

u/Mdo991 3d ago

Does it also support bluetooth connect?

2

u/Fresh-Wealth4531 3d ago

No, Bluetooth is too slow for this. Right now it just uses local Wi-Fi (or your phone's hotspot), and I'm thinking of adding a USB option later for when you're not on Wi-Fi

2

u/Mdo991 3d ago

well done

5

u/mikebld 3d ago

t3 code lets you do this easily

3

u/DulsKerty 2d ago

is the latency actually usable over wifi with that setup?

1

u/mikebld 2d ago

yea, I also used it over cellular and it worked more than fine

1

u/LovesWorkin 3d ago

I love t3code. Totally forgot you could do this!

0

u/Orelox 2h ago

Is this comments from ai bots or from Teo himself

2

u/Foreign_Fun2501 20h ago

Why though?

2

u/frozenDiesel 3d ago

How did you do this? Is possible gimmie ur workflow

1

u/startup_sidequest67 2d ago

The 30–40 FPS figure makes me curious whether frame pacing or input latency is the bigger constraint. Average FPS can look fine while occasional long frames make the controls feel laggy. If you haven’t measured it yet, I’d compare capture-to-display latency and dropped-frame intervals on a mostly static screen and during a fast animation. For a simulator tool, I’d be interested in which matters more in practice: steady input response or getting closer to 60 FPS?

1

u/No_Lawyer1947 2d ago

Personally I would not get any ounce of use out of this. I guess testing different OS versions, but I have some tools I use to control the simulator with AI tools to help with development, and I'm adding a handicap by doing this. If I really wanted to test the phone, I could already do so with expo's development builds on devices.

1

u/TecxUday 18h ago

Good,but what is the purpose?

1

u/SoloRack-cloud 7h ago

This is a cool hack. The real use case I see is devs on Windows/Android who need to test iOS without owning a Mac. How's the latency over the network? And does it handle gestures like swipe-back and pinch properly, or just taps?

0

u/dawedev 3d ago

What are you sending right now, JPEG frames over a websocket? That tends to top out around where you are. Hardware H.264 from VideoToolbox over WebRTC is the usual way past it, and if you capture with ScreenCaptureKit you only get frames when the window actually changes, so idle screens cost almost nothing.