Skip to content

02 / WORK

Selected work.

Explore production engineering experience by domain, technology and hiring focus.

← All projects

MOBILE ARCHITECTURE / SYNC–OBSERVE PATTERN

TrustHealth

Doctor–patient messaging & native SDK integration

Native messaging capabilities, reactive React Native UI

Explored and developed a React Native messaging platform for doctors and patients, integrating the native Azure Communication Services SDKs through a shared bridge contract and a WatermelonDB-backed Sync–Observe pattern.

My role

Senior full-stack developer focused on mobile integration and the Sync–Observe architecture.

Engineering contributions

  • Investigated the web-oriented ACS UI implementation and identified an incompatible encryption-library dependency in the React Native environment.
  • Implemented a shared React Native bridge contract across native Android and iOS ACS SDKs for initialization, messaging, typing and thread/message retrieval.
  • Connected native SDK event listeners to JavaScript through React Native event emitters, applying relevant updates to WatermelonDB.
  • Established a Sync–Observe pattern in which thread and message views observe local database records, allowing custom UI and animations to react to incoming data independently of native SDK implementation details.

01 / INTEGRATION DECISION

From a web-oriented UI SDK to native capabilities

I initially explored ACS UI for the messaging interface. In that implementation, its web-oriented encryption-library dependency was incompatible with the React Native environment. Rather than forcing the browser-based UI into mobile, I integrated the native Android and iOS ACS SDKs and built a shared React Native bridge.

INITIAL APPROACHWeb-oriented ACS UI

Blocked by an encryption dependency in the mobile environment.

CHOSEN APPROACHNative ACS SDKs + React Native bridge

Native messaging capabilities, with control over the React Native interface and animations.

02 / NATIVE BRIDGE CONTRACT

One JavaScript contract. Two native implementations.

The bridge defines the operations exposed to JavaScript. Each platform implements those operations using its own ACS SDK; the React Native application can work against the shared contract rather than platform-specific integration details.

BRIDGE / METHOD EXPLORERJS → NATIVE
initialize()

Initialize the native ACS integration and attach listeners for events such as new messages and typing.

ANDROIDNative ACS SDK
iOSNative ACS SDK

Method names reflect the described bridge contract; parameters, return types and exact native implementation signatures are intentionally omitted.

03 / ENGINEERING DEEP DIVE

The Sync–Observe pattern

I coined Sync–Observe to describe the separation of communication, data synchronization and reactive presentation in this implementation. Native ACS listeners relay events to JavaScript; relevant events update WatermelonDB, while the thread and conversation views observe local records and react to changes.

FIG. 01 / SYNC–OBSERVE
CallsNative callEventsEmit to JSSyncObserve → UIResultReact Native UICustom chat interfaceBridge contractShared JS methodsNative ACS SDKsAndroid / iOSNative listenersRN event emitterJavaScript syncApply relevant eventsWatermelonDBObserved records
ILLUSTRATIVE RUNTIME STATE
BRIDGE / EVENTNative listeners attached
LOCAL DATABASENo message change required
OBSERVING UIMessaging session initialized
CONVERSATION / DEMO
Hello, doctor.
SCENARIO 01 / 06

Initialize

initialize()

JavaScript invokes the bridge. The native Android or iOS implementation initializes ACS and attaches event listeners, preparing the channel for subsequent native-to-JavaScript events.

Illustrative signal paths and fictional message text, not patient records or an executable reproduction of the original implementation. Retrieval responses and native events are illustrated as separate paths to JavaScript; the precise return handling is abstracted.

04 / ARCHITECTURAL VALUE

Separate transport from presentation

Native capabilities

Leverage Android and iOS ACS SDKs without requiring the web-oriented UI dependency.

Modular platform boundary

A shared bridge contract keeps JavaScript-facing operations independent of native implementation details.

Event-driven synchronization

Native listeners and React Native event emitters connect incoming messages and relevant changes to JavaScript.

Reactive local views

WatermelonDB observation lets thread and message views respond to changes in their local records.

Custom messaging experience

Own the design, UI behavior and animations rather than adopting a prebuilt messaging interface.

Local data availability

Locally stored thread and message records provide a foundation for displaying previously synchronized data; live transport still requires connectivity.

Technologies

Diagrams are conceptual illustrations, not screenshots or proprietary architecture documents.

Explore all work ↗