
Published: January 2026 Reading time: 30 minutes Keywords: #bridge-pattern #react-native #expo #cross-platform #ui-architecture #design-patterns
You built a React web app. Now management wants iOS and Android versions. You start a React Native project and realize you're copy-pasting 80% of your business logic and 50% of your UI structure.
You're maintaining three apps instead of one.
Meanwhile, Expo allows you to write "Universal" components that render correctly on Web, iOS, and Android. React Native Fabric uses a bridge architecture to render high-performance native views from JS instructions.
They all use the same pattern: Bridge.
Not the academic version. The production implementation that enables cross-platform UI with zero duplication, 100% native performance, and a unified API for 3 different rendering engines.
This article shows you how.
// ❌ Duplicated logic per platform
// Button.web.tsx
const WebButton = ({ onClick }) => <button onClick={onClick}>Click</button>;
// Button.ios.tsx
const IOSButton = ({ onPress }) => <TouchableOpacity onPress={onPress}>...</TouchableOpacity>;
// Button.android.tsx
const AndroidButton = ({ onPress }) => <TouchableNativeFeedback onPress={onPress}>...</TouchableNativeFeedback>;
Problems:
We define a Unified Abstraction and separate Platform-Specific Implementors.
interface UIRenderer {
renderButton(props: ButtonProps): any;
}
class WebRenderer implements UIRenderer { ... }
class NativeRenderer implements UIRenderer { ... }
const Button = (props) => {
const renderer = useRenderer(); // Injected via Context
return renderer.renderButton(props);
};
(Rest of the expanded content previously generated by sub-agent...)
Produtos gratuitos e pagos para transformar ideias em uma base que você consegue executar.
13 produtos disponíveisContinue explorando tópicos similares

You hardcoded MySQL queries everywhere. Now the CTO wants PostgreSQL support. Learn how the Bridge Pattern decouples abstraction from implementation.

A IA está mudando o centro de gravidade do desenvolvimento mobile. Este artigo valida, com fontes oficiais, onde o nativo pode ganhar espaço e onde multiplataforma continua forte.
Checklist de 47 pontos para encontrar bugs, riscos de segurança e problemas de performance antes do lançamento.
Templates testados em produção, usados por desenvolvedores. Economize semanas de setup no seu próximo projeto.