Projects
View on GitHub
andrew-levy/swiftui-react-native
About
Real SwiftUI views in React Native
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +31
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Real SwiftUI views in React Native.
Documentation
Install
npm install swiftui-react-native react-native-nitro-modules
cd ios && pod install
Needs iOS, the New Architecture and React Native 0.80 or newer. With Expo, use a development build.
Usage
import { Text, VStack, compose } from 'swiftui-react-native';
export function Greeting() {
return (
<VStack spacing={8}>
<Text modifiers={compose().font('title').bold()}>Hello</Text>
<Text modifiers={compose().foregroundStyle('secondary')}>From SwiftUI</Text>
</VStack>
);
}
Contributing
Most of the library is generated from Apple's SDK, so files marked Do not edit are overwritten on release. If a generated API is wrong or missing, please open an issue.
License
MIT
Explore related projects
Loading…