How-tos
Short, direct answers to “how do I do X” — each page is a lookup, not a tutorial. For the concept behind an answer, follow the link into Learn or API; for a full copyable app, see Examples.
Available how-tos
Section titled “Available how-tos”- Style a component —
StyleSheet.createvs a Vue SFC<style>block. - Handle press/change events — React callback props,
Vue emits, Angular
@Output(). - Two-way bind a value — Vue
v-model, Angular[(value)]. - Share content across surfaces —
createPortal/TeleportvscreateTunnel. - Write platform-specific code — the
X.ios.ts/X.android.ts/X/shared.tsfolder convention. - Wrap a third-party native view — why the library’s React component can’t be reused, and what can.
- Turn on diagnostic logging —
dlog/isDebugand theDEBUGenv var.