react-native-attachment-kit 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +11 -1
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +3 -0
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +3 -0
- package/ios/RNAttachmentKit.swift +16 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +38 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +7143 -1781
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +15 -15
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +76 -2
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +7143 -1781
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +7143 -1781
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +115 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +25 -25
- package/package.json +1 -1
- package/src/index.ts +45 -3
- package/src/types.ts +23 -0
package/src/types.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** 화면 모드: 기기 설정 따름 / 라이트 강제 / 다크 강제 */
|
|
2
|
+
export type Appearance = "system" | "light" | "dark"
|
|
3
|
+
|
|
1
4
|
/** 모듈이 번역을 내장한 언어 코드 (ISO 639-1, 59개) */
|
|
2
5
|
export type SupportedLanguageCode = "af" | "ar" | "be" | "bg" | "bn" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "eo" | "es" | "et" | "fa" | "fi" | "fr" | "ga" | "gl" | "gu" | "he" | "hi" | "hr" | "ht" | "hu" | "id" | "is" | "it" | "ja" | "ka" | "kn" | "ko" | "lt" | "lv" | "mk" | "mr" | "ms" | "mt" | "nl" | "no" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sq" | "sv" | "sw" | "ta" | "te" | "th" | "tl" | "tr" | "uk" | "ur" | "vi" | "zh"
|
|
3
6
|
|
|
@@ -50,6 +53,11 @@ export interface GalleryOptions {
|
|
|
50
53
|
enableEditor?: boolean // 단일 이미지 선택 시 편집기 활성화 여부
|
|
51
54
|
profileMode?: boolean // 1:1 프로필 크롭 모드 활성화 여부
|
|
52
55
|
themeColor?: string // 테마 컬러 지정 (ex: "#FFEB3B")
|
|
56
|
+
/**
|
|
57
|
+
* 화면 모드. "system"(기본)은 기기 설정을 따르고, "light"/"dark" 는 강제합니다.
|
|
58
|
+
* 생략하면 init / setDefaults 의 appearance 기본값을 씁니다.
|
|
59
|
+
*/
|
|
60
|
+
appearance?: Appearance
|
|
53
61
|
asyncProcessing?: boolean // 완전 비동기 이벤트 리턴 여부
|
|
54
62
|
onSelectionChange?: (event: SelectionChangeEvent) => void
|
|
55
63
|
onImageProcessed?: (event: any) => void
|
|
@@ -68,6 +76,11 @@ export interface ViewerOptions {
|
|
|
68
76
|
cacheFiles?: (string | null)[]
|
|
69
77
|
initialIndex?: number
|
|
70
78
|
themeColor?: string // Added themeColor for Android
|
|
79
|
+
/**
|
|
80
|
+
* 화면 모드. "system"(기본)은 기기 설정을 따르고, "light"/"dark" 는 강제합니다.
|
|
81
|
+
* 생략하면 init / setDefaults 의 appearance 기본값을 씁니다.
|
|
82
|
+
*/
|
|
83
|
+
appearance?: Appearance
|
|
71
84
|
title?: string
|
|
72
85
|
animationType?: 'slide' | 'fade' | 'zoom'
|
|
73
86
|
closeAnimationType?: 'slide' | 'fade' | 'zoom'
|
|
@@ -163,6 +176,11 @@ export interface EditorOptions {
|
|
|
163
176
|
uri: string // 편집할 이미지의 uri (originalUri)
|
|
164
177
|
editedFileUri?: string // 이전에 편집한 이미지의 파일 경로
|
|
165
178
|
themeColor?: string // 편집기 테마 컬러
|
|
179
|
+
/**
|
|
180
|
+
* 화면 모드. "system"(기본)은 기기 설정을 따르고, "light"/"dark" 는 강제합니다.
|
|
181
|
+
* 생략하면 init / setDefaults 의 appearance 기본값을 씁니다.
|
|
182
|
+
*/
|
|
183
|
+
appearance?: Appearance
|
|
166
184
|
maxWidth?: number // 최대 width
|
|
167
185
|
maxHeight?: number // 최대 height
|
|
168
186
|
openDuration?: number
|
|
@@ -287,6 +305,11 @@ export interface MediaGalleryOptions {
|
|
|
287
305
|
/** 칸 사이 간격 pt/dp (기본: 피커와 동일) */
|
|
288
306
|
spacing?: number
|
|
289
307
|
theme?: Partial<MediaGalleryTheme>
|
|
308
|
+
/**
|
|
309
|
+
* 화면 모드. "system"(기본)은 기기 설정을 따르고, "light"/"dark" 는 강제합니다.
|
|
310
|
+
* 생략하면 init / setDefaults 의 appearance 기본값을 씁니다.
|
|
311
|
+
*/
|
|
312
|
+
appearance?: Appearance
|
|
290
313
|
/** 월 표시 로케일 */
|
|
291
314
|
languageCode?: LanguageCode
|
|
292
315
|
emptyTitle?: string
|