Loading...
Loading...
Compare original and translation side by side
@expo/ui@expo/ui@expo/uiThese instructions track the latest Expo SDK. The universal layer requires SDK 56+. Drop-in replacements and the platform-specific layers also exist on SDK 55. For component details on a specific SDK, refer to the Expo UI docs for that version.
@expo/ui这些说明基于最新的Expo SDK。通用层需要 SDK 56+。可直接替换的组件和平台特定层在SDK 55中也已存在。如需特定SDK的组件详情,请参考对应版本的Expo UI文档。
npx expo install @expo/ui@expo/uinpx expo startnpx expo run:iosnpx expo run:android@expo/uiHostnpx expo install @expo/ui@expo/uinpx expo startnpx expo run:iosnpx expo run:android@expo/uiHost@expo/uireact-native-webreact-dom./references/universal.md@expo/ui/swift-ui@expo/ui/jetpack-compose.ios.tsx.android.tsxPlatform.OS./references/swift-ui.md./references/jetpack-compose.md@expo/ui@gorhom/bottom-sheet@react-native-community/datetimepicker@expo/ui/community/<name>./references/drop-in-replacements.md@expo/uireact-native-webreact-dom./references/universal.md@expo/ui/swift-ui@expo/ui/jetpack-compose.ios.tsx.android.tsxPlatform.OS./references/swift-ui.md./references/jetpack-compose.md@expo/ui@gorhom/bottom-sheet@react-native-community/datetimepicker@expo/ui/community/<name>./references/drop-in-replacements.mdreferences/
universal.md Universal @expo/ui components and when to use them (SDK 56+)
drop-in-replacements.md API-compatible replacements for RN community UI libraries
swift-ui.md Platform-specific iOS UI: @expo/ui/swift-ui components, modifiers, RNHostView, useNativeState
jetpack-compose.md Platform-specific Android UI: @expo/ui/jetpack-compose components, modifiers, LazyColumn caveat, icons, useNativeStatereferences/
universal.md 通用@expo/ui组件及其适用场景(SDK 56+)
drop-in-replacements.md 与React Native社区UI库API兼容的替代组件
swift-ui.md 平台特定iOS UI:@expo/ui/swift-ui组件、修饰符、RNHostView、useNativeState
jetpack-compose.md 平台特定Android UI:@expo/ui/jetpack-compose组件、修饰符、LazyColumn注意事项、图标、useNativeState