1# purescript-yoga-react-native
3PureScript bindings for React Native macOS with 55+ native AppKit components.
9git clone https://github.com/rowtype-yoga/purescript-yoga-react-native.git
10cd purescript-yoga-react-native
12cd example-macos && bun install && cd ..
15cd example-macos/macos && bundle exec pod install && cd ../..
18cd example-macos && bunx spago build && cd ..
21cd example-macos && npx react-native run-macos
24## Using in Your Project
31 git: https://github.com/rowtype-yoga/purescript-yoga-react-native.git
34 git: https://github.com/rowtype-yoga/purescript-yoga-react.git
39import Yoga.React.Native (text, tw, view)
40import Yoga.React.Native.MacOS.Button (nativeButton)
41import Yoga.React.Native.MacOS.Types as T
43myButton = nativeButton
46 , onPress: handler_ doSomething
47 , style: Style.style { height: 24.0 }
54`nativeButton` `nativeSwitch` `nativeSlider` `nativePopUp` `nativeComboBox` `nativeStepper` `nativeDatePicker` `nativeColorWell` `nativeCheckbox` `nativeRadioButton` `nativeSearchField` `nativeTokenField` `nativeSegmented`
57`nativeTextField` `nativeTextEditor`
60`nativeImage` `nativeAnimatedImage` `nativeVideoPlayer` `nativeLevelIndicator` `nativeProgress` `nativeSeparator` `nativePathControl`
63`nativeBox` `nativeSplitView` `nativeTabView` `nativeScrollView` `sidebarLayout` `nativeToolbar` `nativeVisualEffect` `nativePatternBackground`
66`macosAlert` `nativeSheet` `nativePopover` `nativeContextMenu` `macosShowMenu`
69`nativeTableView` `nativeOutlineView`
72`nativeDropZone` `nativeFilePicker`
75`nativeMapView` `nativePDFView` `nativeWebView` `nativeCameraView` `nativeRiveView`
78`copyToClipboard` `macosShare` `macosNotify` `macosPlaySound` `macosSetStatusBarItem` `macosQuickLook` `macosShowColorPanel` `macosShowFontPanel` `say`
81`recognizeText` (OCR) `useSpeechRecognition` `detectLanguage` `analyzeSentiment` `tokenize`
88- PureScript 0.15+ and Spago
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list