Skip to content
Proyek

andrew-levy/swiftui-react-native

Lihat di GitHub

Tentang

Tampilan SwiftUI asli di React Native.

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+31
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

Jelajahi proyek terkait

Memuat…