Loading...
Loading...
`@expo/ui/swift-ui` package lets you use SwiftUI Views and modifiers in your app.
npx skill4agent add expo/skills expo-ui-swift-uiThe instructions in this skill apply to SDK 55 only. For other SDK versions, refer to the Expo UI SwiftUI docs for that version for the most accurate information.
npx expo install @expo/uinpx expo run:ios@expo/ui/swift-ui@expo/ui/swift-ui/modifiersHostRNHostViewimport { Host, VStack, RNHostView } from "@expo-ui/swift-ui";
import { Pressable } from "react-native";
<Host matchContents>
<VStack>
<RNHostView matchContents>
// Here, `Pressable` is an RN component so it is wrapped in `RNHostView`.
<Pressable />
</RNHostView>
</VStack>
</Host>;