git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on main help sign in
commitfd229f58fe5da75548be396ab934f0a5d60237b8 authorMark <mark.eibes@gmail.com> dateFri 20 Feb 2026, 10:19 (7 months ago) parentccfbe66
3 files changed+20−23
src/Yoga/React/Native/MacOS/CheckMark.js+2 src/Yoga/React/Native/MacOS/CheckMark.purs+16 src/Yoga/React/Native/SFSymbol.js+2−23
src/Yoga/React/Native/MacOS/CheckMark.jsnew file+2
@@ -0,0 +1,2 @@
1+import { requireNativeComponent } from "react-native";
2+export const checkMarkImpl = requireNativeComponent("CheckMark");
src/Yoga/React/Native/MacOS/CheckMark.pursnew file+16
@@ -0,0 +1,16 @@
1+module Yoga.React.Native.MacOS.CheckMark (checkMark, CheckMarkAttributes) where
2+
3+import React.Basic (ReactComponent)
4+import Yoga.React.Native.Attributes (BaseAttributes)
5+import Yoga.React.Native.Internal (FFINativeComponent_, createNativeElement_)
6+
7+foreign import checkMarkImpl :: forall props. ReactComponent props
8+
9+checkMark :: FFINativeComponent_ CheckMarkAttributes
10+checkMark = createNativeElement_ checkMarkImpl
11+
12+type CheckMarkAttributes = BaseAttributes
13+ ( isDouble :: Boolean
14+ , color :: String
15+ , strokeWidth :: Number
16+ )
src/Yoga/React/Native/SFSymbol.js+2−23
@@ -1,23 +1,2 @@
1−import {
2− requireNativeComponent,
3− Platform,
4− UIManager,
5− View,
6−} from "react-native";
7−
8−let _impl = View;
9−if (Platform.OS === "macos") {
10− try {
11− const config = UIManager.getViewManagerConfig("SFSymbol");
12− if (config) {
13− _impl = requireNativeComponent("SFSymbol");
14− } else {
15− console.warn(
16− "[SFSymbol] Native component not found, using View fallback",
17− );
18− }
19− } catch (e) {
20− console.warn("[SFSymbol] Failed to load native component:", e.message);
21− }
22−}
23−export const _sfSymbolImpl = _impl;
1+import { requireNativeComponent } from "react-native";
2+export const _sfSymbolImpl = requireNativeComponent("SFSymbol");