Skip to content
プロジェクト

andrew-levy/swiftui-react-native

GitHubで見る

概要

React Nativeで本物のSwiftUIビューを使用

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
+1
15日間
+31
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

SwiftUI React Native

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

関連プロジェクトを探す

読み込み中…