项目
在 GitHub 查看
andrew-levy/swiftui-react-native
关于
在 React Native 中使用真正的 SwiftUI 视图
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +31
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
探索相关项目
加载中…