React 네이티브 구성요소 치트시트

Barbara Streisand
풀어 주다: 2024-10-17 06:26:29
원래의
216명이 탐색했습니다.

React Native Components CheatSheet

다음은 HTML 요소에 해당하는 React Native 구성 요소에 대한 전체 가이드이며 기본 Android 및 iOS UI 구성 요소는 웹 개발과 모바일 개발 간의 격차를 해소할 수 있습니다. 이 포괄적인 표는 개발자가 여러 플랫폼에서 원활하게 전환하는 데 도움이 되는 항목별 비교를 제공합니다.

React Native Component HTML Element Android Component iOS Component
View
ViewGroup UIView
Text

or

TextView UILabel
Image ImageView UIImageView
TextInput EditText UITextField
ScrollView
ScrollView UIScrollView
FlatList
    (with custom handling)
RecyclerView UITableView
SectionList
    with sections
ExpandableListView UITableView with sections
Button Button UIButton
TouchableOpacity Clickable
TouchableOpacity UIButton (with opacity)
TouchableHighlight Clickable
TouchableHighlight UIButton (with highlight effect)
TouchableWithoutFeedback Clickable
View with touch events UIView with touch events
ActivityIndicator CSS Spinner ProgressBar UIActivityIndicatorView
Modal Custom modal/dialog Dialog Modal UIViewController
Picker Spinner UIPickerView
Switch Switch UISwitch
Slider SeekBar UISlider
StatusBar N/A StatusBar UIStatusBar
SafeAreaView N/A View (with insets) UIView respecting safe areas
KeyboardAvoidingView N/A View with keyboard handling UIView with keyboard handling
Pressable View with touch events UIView with touch events
RefreshControl N/A SwipeRefreshLayout UIRefreshControl
WebView