# Building a Universal TV Remote App with React Native

I have spent a lot of time deploying web applications. This time, I wanted to build something people could use from their phones.

The idea was simple: connect your phone to your TV over Wi-Fi and use it as a remote.

That became Universal TV Remote, my React Native app for Android. It supports Android TV / Google TV, Samsung, LG webOS, and Roku, with available controls depending on the TV model.

The remote screen was the straightforward part. Getting different TVs to connect reliably took more work. One Interface, Different TV Systems A universal remote sounds like one application sending the same commands to every TV.

In practice, each platform handles discovery, pairing, and commands differently. A connection flow that works for one brand won’t necessarily work for another.

I organized the app around a shared controller interface, with separate implementations for each TV platform. The screen calls an action such as “go back” or “pause,” and the relevant controller handles the TV-specific command.

That gives me a consistent interface while keeping each integration manageable. Finding and Connecting to a TV The first step is discovering compatible TVs on the local network. The phone and TV generally need to be on the same Wi-Fi network, with local device communication allowed.

Pairing also varies. Depending on the TV, users may need to approve the connection on-screen or enter a code before the app can send commands.

I wanted those steps to be understandable. A user should know whether the app is searching, waiting for approval, connected, or unable to reach the TV. Controls That Matter For the first release, I focused on everyday actions:

- Directional navigation, OK, Back, and Home
- Playback controls
- Volume controls where supported
- Streaming app shortcuts on supported TVs
- Saved TVs for quicker reconnection I kept the interface focused on buttons rather than adding touchpad navigation or complex customization.

My goal was to make opening the app and using the remote take as few steps as possible. Reconnecting Was a Feature of Its Own A successful first connection was only the beginning.

What happens when the TV switches off? What if the app goes into the background? What should happen when the user returns?

I added saved devices, automatic reconnection, and a manual reconnect option. Then I tested interruptions: stopping the TV connection, restoring it, and moving the app between foreground and background.

These flows matter because an app can still display a remote screen while its connection has already dropped. The connection status needs to reflect what is actually happening. Testing Without Every TV on My Desk Supporting several platforms creates a practical problem: I don’t have every TV model available for testing.

For some integrations, I used mock servers to simulate discovery responses and commands. This helped me check connection handling and how the app reacted when a device became unavailable.

Mocks are useful, but physical TV testing still matters. Firmware versions, permissions, and model differences can change the behaviour.

That is also why I am careful with the word “universal.” Supporting a TV platform doesn’t guarantee every feature works on every model. What I Learned This project pushed me beyond building screens and calling web APIs. I had to think about local networking, native modules, pairing, connection state, and device-specific behaviour.

The biggest lesson was that connecting once and staying useful are different problems. Reconnection, clear status messages, and handling failures deserve as much attention as the remote buttons.

I am focusing on the Android experience first and continuing to improve compatibility through testing.

If you try Universal TV Remote, I would love to know your TV brand and model, what worked, and where you got stuck.

## Try Universal TV Remote

Turn your phone into a Wi-Fi remote for your TV. Download the app on Google Play:

👉 [Download Universal TV Remote](https://play.google.com/store/apps/details?id=com.deep.patel.universaltvremote)

Tried it? Share your TV brand and model in the comments. Your feedback helps me improve compatibility.
