2dc22c19b0
RN/Expo already owns a borderRadius property on UIView (as a style prop),
so declaring `private var borderRadius` on ExpoView was rejected by Swift
("cannot override with a stored property"). Rename the bridge prop and Swift
property to `previewCornerRadius`; the public Trigger/ImageContextMenu API
keeps `borderRadius` and Root translates it at the bridge layer.
Also tighten `var start` to `let` in the SVG parser.
https://claude.ai/code/session_015REmux3R9uuEMMJUHxTyQT
25 lines
669 B
Swift
25 lines
669 B
Swift
import ExpoModulesCore
|
|
|
|
public class ExpoBlueskyContextMenuModule: Module {
|
|
public func definition() -> ModuleDefinition {
|
|
Name("ExpoBlueskyContextMenu")
|
|
|
|
View(ExpoBlueskyContextMenuView.self) {
|
|
Events(["onItemPress", "onPreviewPress"])
|
|
|
|
Prop("preview") { (view: ExpoBlueskyContextMenuView, value: [String: Any]?) in
|
|
view.setPreview(value)
|
|
}
|
|
|
|
Prop("menuItems") { (view: ExpoBlueskyContextMenuView, value: [[String: Any]]) in
|
|
view.setMenuItems(value)
|
|
}
|
|
|
|
Prop("previewCornerRadius") {
|
|
(view: ExpoBlueskyContextMenuView, value: Double) in
|
|
view.setPreviewCornerRadius(value)
|
|
}
|
|
}
|
|
}
|
|
}
|