Skip to main content

Welcome

Bringing the best SwiftUI features to your React Native app 🚀

At a Glance​

This library provides you with a set of SwiftUI primitives that you can use in your React Native app.

  • Real SwiftUI native views
  • SwiftUI Modifiers as props
  • Experimental API
note

This is not a cross-platform library. These components will only work on iOS.

Usage​

import {
VStack,
Text,
TextField,
Button,
useBinding,
} from 'swiftui-react-native';

function App() {
const text = useBinding('');
return (
<VStack aligment="leading" background="blue" padding={{ leading: 30 }}>
<Text font="title">Some cool text</Text>
<TextField text={text} placeholder="Name" />
<Button title="Click the cool button" action={doSomething} />
</VStack>
);
}