Native elements#

Instead of HTML tags, Lynx components compose a small set of native elements.

The core set#

TSX
import { View, Text, Image, ScrollView, Input } from '@sigx/lynx';
  • View — the flexbox container (UIView / ViewGroup)
  • Text — all text must live in a Text element
  • Image — local + remote sources
  • ScrollView — scrolling containers
  • Input — text entry

Composition#

Elements nest exactly like web components — keys, conditionals and list rendering work unchanged from SignalX on the web.