Files
Folo/apps/mobile/native/ios/Modules/Galeria/GaleriaModule.swift
T
Innei 085bb89b36 feat(mobile): add native iOS modules for shared functionality
- Implement native iOS modules for WebView, Toaster, Galeria, and Helper
- Add SPIndicator package for native toast notifications
- Create ImageViewer package for enhanced image preview
- Introduce utility extensions and helper methods for iOS development
- Remove SPIndicator dependency from podspec
- Update toast implementation to use native module

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-11 22:18:35 +08:00

34 lines
731 B
Swift

//
// GaleriaModule.swift
// Pods
// Copy from https://github.dev/nandorojo/galeria
// Created by Innei on 2025/3/10.
//
import ExpoModulesCore
import SwiftUI
import UIKit
public class GaleriaModule: Module {
public func definition() -> ModuleDefinition {
Name("FollowGaleria")
View(GaleriaView.self) {
Events("onPreview")
Events("onClosePreview")
Events("onChangeIndex")
Prop("urls") { (view, urls: [String]?) in
view.urls = urls
}
Prop("index") { (view, index: Int?) in
view.initialIndex = index
}
Prop("rightNavItemIconName") { (view, rightNavItemIconName: String) in
view.rightNavItemIconName = rightNavItemIconName
}
}
}
}