Skip to content
프로젝트

andrew-levy/swiftui-react-native

GitHub에서 보기

소개

React Native에서 실제 SwiftUI 뷰 사용

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+31
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…