@@ -1,15 +1,90 @@
1# purescript-yoga-react-native
1# purescript-yoga-react-native
3−To install dependencies:
3+PureScript bindings for React Native macOS with 55+ native AppKit components.
9+git clone https://github.com/rowtype-yoga/purescript-yoga-react-native.git
10+cd purescript-yoga-react-native
6bun install
11bun install
12+cd example-macos && bun install && cd ..
15+cd example-macos/macos && bundle exec pod install && cd ../..
18+cd example-macos && bunx spago build && cd ..
21+cd example-macos && npx react-native run-macos
9−To run:
24+## Using in Your Project
11−```bash
26+Add to `spago.yaml`:
31+ git: https://github.com/rowtype-yoga/purescript-yoga-react-native.git
34+ git: https://github.com/rowtype-yoga/purescript-yoga-react.git
15−This project was created using `bun init` in bun v1.2.21. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
38+```purescript
39+import Yoga.React.Native (text, tw, view)
40+import Yoga.React.Native.MacOS.Button (nativeButton)
41+import Yoga.React.Native.MacOS.Types as T
43+myButton = nativeButton
47+ , onPress: handler_ doSomething
48+ , style: Style.style { height: 24.0 }
55+`nativeButton` `nativeSwitch` `nativeSlider` `nativePopUp` `nativeComboBox` `nativeStepper` `nativeDatePicker` `nativeColorWell` `nativeCheckbox` `nativeRadioButton` `nativeSearchField` `nativeTokenField` `nativeSegmented`
58+`nativeTextField` `nativeTextEditor`
61+`nativeImage` `nativeAnimatedImage` `nativeVideoPlayer` `nativeLevelIndicator` `nativeProgress` `nativeSeparator` `nativePathControl`
64+`nativeBox` `nativeSplitView` `nativeTabView` `nativeScrollView` `sidebarLayout` `nativeToolbar` `nativeVisualEffect` `nativePatternBackground`
67+`macosAlert` `nativeSheet` `nativePopover` `nativeContextMenu` `macosShowMenu`
70+`nativeTableView` `nativeOutlineView`
73+`nativeDropZone` `nativeFilePicker`
76+`nativeMapView` `nativePDFView` `nativeWebView` `nativeCameraView` `nativeRiveView`
79+`copyToClipboard` `macosShare` `macosNotify` `macosPlaySound` `macosSetStatusBarItem` `macosQuickLook` `macosShowColorPanel` `macosShowFontPanel` `say`
82+`recognizeText` (OCR) `useSpeechRecognition` `detectLanguage` `analyzeSentiment` `tokenize`
89+- PureScript 0.15+ and Spago