All jobs / Mobile developer / Cross-Platform

Mobile developer interview question · 3–5 years

A cross-platform codebase has is-iOS / is-Android checks scattered through the screens, and a fix for one platform keeps breaking the other. How do you organise it?

The strongest answer

Put the difference behind one interface the shared code calls, with the platform implementations at the edge, so a screen reads the same on both and each platform has exactly one place to change

Why it works

Exactly — shared code stays platform-blind, and the platform detail lives where the platform team can own it.

What a good answer covers

Answers that fall short

Who gets asked this

More Cross-Platform questions