React Native 提供了一组核心组件 — 如 View、Text、Image、ScrollView、TextInput — 这些组件映射到原生 UI 元素。它们是 React Native UI 的基本构建块,用来代替 web HTML 元素。
Core components(与 web HTML 对比)
React Native uses its OWN components (mapping to native views), NOT HTML:
VIEW → a container (like a <div>) — the basic layout building block
TEXT → display text (ALL text must be inside a <Text>, unlike web)
IMAGE → display images (local or remote)
TEXTINPUT → text input field (like an <input>)
SCROLLVIEW → a scrollable container
FLATLIST → an efficient scrollable LIST (for long lists — renders lazily)
TOUCHABLEOPACITY / PRESSABLE → handle taps (touchable areas)
BUTTON → a basic button
