react-native-attachment-kit 1.0.1 → 1.0.5
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 +116 -0
- package/README.md +356 -213
- package/android/build.gradle +3 -0
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +308 -10
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +311 -9
- package/ios/RNAttachmentKit.m +44 -0
- package/ios/RNAttachmentKit.swift +307 -23
- package/ios/RNAttachmentKit.xcframework/Info.plist +5 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +30 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +20349 -13021
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +118 -1
- 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 +118 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +194 -62
- 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 +60 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +20349 -13021
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +118 -1
- 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 +118 -1
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +20349 -13021
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +118 -1
- 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 +118 -1
- 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/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~dark.webp +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~light.webp +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 +204 -72
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_back~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_back~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_blur~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_close~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_close~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~light.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_text_add~dark.webp +0 -0
- package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_text_add~light.webp +0 -0
- package/package.json +1 -1
- package/src/NativeAttachmentKit.ts +10 -0
- package/src/index.d.ts +5 -56
- package/src/index.ts +188 -35
- package/src/types.ts +207 -11
package/src/types.ts
CHANGED
|
@@ -61,10 +61,217 @@ export interface GalleryOptions {
|
|
|
61
61
|
asyncProcessing?: boolean // 완전 비동기 이벤트 리턴 여부
|
|
62
62
|
onSelectionChange?: (event: SelectionChangeEvent) => void
|
|
63
63
|
onImageProcessed?: (event: any) => void
|
|
64
|
+
/**
|
|
65
|
+
* 갤러리 아래에 첨부 메뉴(갤러리 / 위치 / 파일)를 보여줍니다. 기본 false.
|
|
66
|
+
* 위치 탭: iOS 는 Apple 지도(키 필요 없음), Android 는 Google 지도 — 앱의 AndroidManifest 에
|
|
67
|
+
* `com.google.android.geo.API_KEY` meta-data 가 있어야 지도가 그려집니다 (주소 변환은 기기 내장 Geocoder).
|
|
68
|
+
*/
|
|
69
|
+
showAttachMenu?: boolean
|
|
70
|
+
/**
|
|
71
|
+
* 위치 보내기 때 지도 캡처 이미지를 만들지 (기본 true = 예전과 같음).
|
|
72
|
+
* false 면 캡처 없이 위치 정보만 바로 보냅니다 — AttachLocationResult 에 imageUri/imagePath/imageWidth/imageHeight 가 없고,
|
|
73
|
+
* imageSpanMeters 는 캡처했을 때와 같은 값이 옵니다. 받는 쪽은 renderLocationThumbnail 로 썸네일을 그립니다.
|
|
74
|
+
*/
|
|
75
|
+
captureLocationImage?: boolean
|
|
76
|
+
/**
|
|
77
|
+
* (Android) 첨부 메뉴 바의 아래 여백 조정 (dp).
|
|
78
|
+
* attachMenuSinkIntoNav: 바가 내비게이션 바 영역으로 내려앉는 정도. 기본 12 (지금 모양). 0 이면 내비게이션 바 바로 위.
|
|
79
|
+
* attachMenuMinBottomMargin: 화면 아래와의 최소 간격. 기본 8.
|
|
80
|
+
* iOS 는 무시.
|
|
81
|
+
*/
|
|
82
|
+
attachMenuSinkIntoNav?: number
|
|
83
|
+
attachMenuMinBottomMargin?: number
|
|
84
|
+
/**
|
|
85
|
+
* 위치 탭에서 위치를 보냈을 때 호출됩니다. 이때 openGallery 는 빈 배열로 끝납니다.
|
|
86
|
+
*/
|
|
87
|
+
onLocationSelected?: (location: AttachLocationResult) => void
|
|
88
|
+
/**
|
|
89
|
+
* 파일 탭에서 파일을 보냈을 때 호출됩니다 (앱 캐시/임시 폴더로 복사된 파일). 이때 openGallery 는 빈 배열로 끝납니다.
|
|
90
|
+
* Android 는 시스템 파일 선택기(내부 저장 공간 탐색), iOS 는 파일 앱 선택기를 씁니다.
|
|
91
|
+
* 복사에 실패한 파일이 있으면 두 번째 인자 failed 로 { name, error } 목록이 옵니다 (없으면 undefined).
|
|
92
|
+
* 복사본은 iOS tmp/AttachmentKitFiles, Android cache/AttachmentKitFiles 에 있고 24시간이 지난 것은 다음 갤러리 열기 때 지워지므로 바로 옮기거나 업로드하세요.
|
|
93
|
+
*/
|
|
94
|
+
onFilesSelected?: (files: AttachFileResult[], failed?: AttachFileFailure[]) => void
|
|
64
95
|
openDuration?: number
|
|
65
96
|
closeDuration?: number
|
|
66
97
|
}
|
|
67
98
|
|
|
99
|
+
/** 첨부 메뉴 > 파일 에서 복사에 실패한 파일 */
|
|
100
|
+
export interface AttachFileFailure {
|
|
101
|
+
/** 원래 파일 이름 */
|
|
102
|
+
name: string
|
|
103
|
+
/** 실패 사유 (네이티브 오류 메시지) */
|
|
104
|
+
error: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** 첨부 메뉴 > 파일 에서 보낸 파일 (앱 캐시/임시 폴더로 복사본) */
|
|
108
|
+
export interface AttachFileResult {
|
|
109
|
+
/** file:// URI */
|
|
110
|
+
uri: string
|
|
111
|
+
/** 파일 경로 */
|
|
112
|
+
path: string
|
|
113
|
+
/** 원래 파일 이름 */
|
|
114
|
+
name: string
|
|
115
|
+
/** 바이트 */
|
|
116
|
+
size: number
|
|
117
|
+
mimeType: string
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** 첨부 메뉴 > 위치 에서 보낸 위치 */
|
|
121
|
+
export interface AttachLocationResult {
|
|
122
|
+
latitude: number
|
|
123
|
+
longitude: number
|
|
124
|
+
/** 정확도(m). 내 현재 위치를 보낼 때만 */
|
|
125
|
+
accuracy?: number
|
|
126
|
+
/** 장소 이름 (장소를 골랐을 때) */
|
|
127
|
+
title?: string
|
|
128
|
+
/** 주소 */
|
|
129
|
+
address?: string
|
|
130
|
+
/** 내 현재 위치를 보냈는지 (false = 지도에서 옮긴 위치 또는 장소) */
|
|
131
|
+
isCurrentLocation: boolean
|
|
132
|
+
/** 보낸 지점의 지도 캡처 (세로형 480×1040 webp (9:19.5), 내 위치 점 없이 핀만). 캡처 실패 시 없음 */
|
|
133
|
+
imageUri?: string
|
|
134
|
+
imagePath?: string
|
|
135
|
+
imageWidth?: number
|
|
136
|
+
imageHeight?: number
|
|
137
|
+
/** 보낸 위치와 별개로, 보낸 순간의 내 현재 위치 (권한이 있고 위치를 알 때만) */
|
|
138
|
+
currentLatitude?: number
|
|
139
|
+
currentLongitude?: number
|
|
140
|
+
/** 내 현재 위치 정확도(m) */
|
|
141
|
+
currentAccuracy?: number
|
|
142
|
+
/** 지도 이미지에 내 위치 점을 그렸는지 ("내 위치 공유" 토글 — 기본 끔, 선택은 기기에 기억) */
|
|
143
|
+
includesMyLocation?: boolean
|
|
144
|
+
/** 마커 종류 (지도 뷰어가 같은 아이콘을 그리도록): "current" 내 위치 / "pin" 지도에서 옮긴 지점 / "place" 장소 */
|
|
145
|
+
markerType?: 'current' | 'pin' | 'place'
|
|
146
|
+
/** (iOS) 장소 종류 — MKPointOfInterestCategory rawValue. 장소일 때만 */
|
|
147
|
+
placeCategory?: string
|
|
148
|
+
/** 보낸 이미지 가로가 덮는 실제 거리(m) — 지도 뷰어를 같은 축척으로 열 때 (captureLocationImage: false 여도 옴) */
|
|
149
|
+
imageSpanMeters?: number
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* 위치 메시지 말풍선 지도 썸네일 — 이 기기에서 위치 정보만으로 그려 캐시합니다.
|
|
154
|
+
* AttachLocationResult 값을 그대로 넘기면 보낸 화면과 같은 마커·축척으로 그립니다.
|
|
155
|
+
*/
|
|
156
|
+
export interface LocationThumbnailOptions {
|
|
157
|
+
latitude: number
|
|
158
|
+
longitude: number
|
|
159
|
+
/** 썸네일 가로 (dp/pt). 결과 이미지는 기기 배율을 곱한 px */
|
|
160
|
+
width: number
|
|
161
|
+
/** 썸네일 세로 (dp/pt). aspect 를 주면 생략 (aspect 가 우선) */
|
|
162
|
+
height?: number
|
|
163
|
+
/**
|
|
164
|
+
* 세로를 가로에서 계산: "square" 1:1 / "portrait" 9:19.5 (보내는 지도 이미지와 같은 비율) /
|
|
165
|
+
* "device" 이 기기 화면 세로 비율 (지도 뷰어를 열 때 말풍선 이미지가 화면을 꼭 맞게 채움).
|
|
166
|
+
* 생략하면 height 를 그대로 씁니다.
|
|
167
|
+
*/
|
|
168
|
+
aspect?: 'square' | 'portrait' | 'device'
|
|
169
|
+
/**
|
|
170
|
+
* 결과 이미지 최대 크기 (px). 비율을 유지한 채 이 안에 들어가게 줄입니다.
|
|
171
|
+
* 둘 다 생략하면 512 × 512, 하나만 주면 다른 쪽은 제한하지 않습니다.
|
|
172
|
+
* 예: width 170 + aspect "device" + maxWidth 512 + maxHeight 1152 → 3배 기기에서 약 510×1105 px (세로가 512 로 잘리지 않음)
|
|
173
|
+
*/
|
|
174
|
+
maxWidth?: number
|
|
175
|
+
/** 결과 이미지 최대 세로 (px). maxWidth 참고 */
|
|
176
|
+
maxHeight?: number
|
|
177
|
+
/** AttachLocationResult.markerType — 마커 아이콘 */
|
|
178
|
+
markerType?: 'current' | 'pin' | 'place'
|
|
179
|
+
/** (iOS 아이콘) AttachLocationResult.placeCategory */
|
|
180
|
+
placeCategory?: string
|
|
181
|
+
/** 썸네일 가로가 덮는 실제 거리(m). AttachLocationResult.imageSpanMeters. 없으면 400 */
|
|
182
|
+
spanMeters?: number
|
|
183
|
+
/**
|
|
184
|
+
* 보낸 쪽이 "내 위치 공유"를 켰을 때(includesMyLocation)의 내 위치 — 있으면 파란 점을 그리고
|
|
185
|
+
* 두 점이 다 들어오게 범위를 넓힙니다. 공유를 안 켰으면 넘기지 마세요.
|
|
186
|
+
*/
|
|
187
|
+
myLatitude?: number
|
|
188
|
+
myLongitude?: number
|
|
189
|
+
/** 마커 색 (기본: setDefaults 의 themeColor) */
|
|
190
|
+
themeColor?: string
|
|
191
|
+
/** 지도 모드. "system" 은 지금 기기/앱 화면 모드. 생략하면 setDefaults 의 appearance */
|
|
192
|
+
appearance?: Appearance
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface LocationThumbnailResult {
|
|
196
|
+
/** file:// (캐시 파일, webp) */
|
|
197
|
+
uri: string
|
|
198
|
+
path: string
|
|
199
|
+
/** 픽셀 크기 */
|
|
200
|
+
width: number
|
|
201
|
+
height: number
|
|
202
|
+
/** 캐시에서 바로 꺼냈는지 */
|
|
203
|
+
cached: boolean
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 지도 뷰어 (위치 메시지를 눌렀을 때). AttachLocationResult 의 값을 그대로 넘기면 보낸 화면과 같은 마커·축척으로 열립니다.
|
|
208
|
+
* sourceRect + sourceImageUri 를 주면 말풍선 이미지가 화면을 채우며 지도로 바뀌고(스티키), 닫을 땐 반대로 돌아갑니다.
|
|
209
|
+
*/
|
|
210
|
+
/** 좌표 → 주소 (기기 지오코더, 무료). 결과는 디스크에 캐시됩니다 */
|
|
211
|
+
export interface ReverseGeocodeOptions {
|
|
212
|
+
latitude: number
|
|
213
|
+
longitude: number
|
|
214
|
+
/**
|
|
215
|
+
* 주소 언어. 앱 언어 코드 그대로 ('ko', 'en', 'ja', 'zh-Hans', 'zh-TW', 'pt-BR' …) — 모듈 UI 언어 목록으로 줄이지 않습니다.
|
|
216
|
+
* 생략하면 setDefaults / init 의 languageCode (넘긴 그대로)
|
|
217
|
+
*/
|
|
218
|
+
languageCode?: string
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface ReverseGeocodeResult {
|
|
222
|
+
/** 전체 주소. 위치 탭 address 와 같은 형식 (시·도 시·군·구 동 도로 번지, 국가명 없음). 결과가 없으면 null */
|
|
223
|
+
address: string | null
|
|
224
|
+
/** 목록용 짧은 주소 (동/도로 + 번지). 없으면 null */
|
|
225
|
+
shortAddress: string | null
|
|
226
|
+
/** 디스크(또는 메모리) 캐시에서 바로 꺼냈는지 */
|
|
227
|
+
cached: boolean
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* reverseGeocode reject 코드
|
|
232
|
+
* - E_INVALID_COORDINATE: 범위를 벗어난 좌표 / NaN
|
|
233
|
+
* - E_GEOCODE_UNAVAILABLE: (Android) 기기에 Geocoder 가 없음
|
|
234
|
+
* - E_GEOCODE_THROTTLED: 요청 제한(iOS 앱당 분당 약 50건 등) — 잠시 뒤 다시 시도
|
|
235
|
+
* - E_GEOCODE_TIMEOUT: 지오코더가 8초 안에 답하지 않음
|
|
236
|
+
* - E_GEOCODE_NETWORK: 오프라인
|
|
237
|
+
* - E_GEOCODE_FAILED: 그 밖의 오류
|
|
238
|
+
* 오류는 캐시하지 않습니다
|
|
239
|
+
*/
|
|
240
|
+
export type ReverseGeocodeErrorCode =
|
|
241
|
+
| 'E_INVALID_COORDINATE' | 'E_GEOCODE_UNAVAILABLE' | 'E_GEOCODE_THROTTLED'
|
|
242
|
+
| 'E_GEOCODE_TIMEOUT' | 'E_GEOCODE_NETWORK' | 'E_GEOCODE_FAILED'
|
|
243
|
+
|
|
244
|
+
export interface MapViewerOptions {
|
|
245
|
+
latitude: number
|
|
246
|
+
longitude: number
|
|
247
|
+
/** 장소 이름 */
|
|
248
|
+
title?: string
|
|
249
|
+
/** 주소. 생략하면 기기 지오코더로 채움 (reverseGeocode 와 같은 캐시, 언어는 languageCode ?? setDefaults 의 languageCode) */
|
|
250
|
+
address?: string
|
|
251
|
+
/** AttachLocationResult.markerType — 보낸 화면과 같은 마커 */
|
|
252
|
+
markerType?: 'current' | 'pin' | 'place'
|
|
253
|
+
/** (iOS) AttachLocationResult.placeCategory */
|
|
254
|
+
placeCategory?: string
|
|
255
|
+
/** AttachLocationResult.imageSpanMeters — 처음 축척을 말풍선 이미지와 맞춤 */
|
|
256
|
+
spanMeters?: number
|
|
257
|
+
/** "길찾기" 버튼 표시 (기본 true) */
|
|
258
|
+
showDirections?: boolean
|
|
259
|
+
/** 말풍선 이미지 위치 (measureInWindow 값 그대로, dp/pt). 있으면 스티키 애니메이션 */
|
|
260
|
+
sourceRect?: SourceRect
|
|
261
|
+
/**
|
|
262
|
+
* 말풍선 이미지 (https:// 또는 file://). 못 불러오면 이미지 없이 지도만 엶.
|
|
263
|
+
* sourceRect 와 비율이 달라도 됩니다 (예: 4:3 칸 + 화면 비율 이미지) — 칸 안에 가운데 크롭(cover)으로 그려
|
|
264
|
+
* 첫 프레임이 말풍선(resizeMode="cover")과 같고, 열리며 잘린 위아래가 펼쳐집니다 (닫을 땐 반대)
|
|
265
|
+
*/
|
|
266
|
+
sourceImageUri?: string
|
|
267
|
+
/** 말풍선 이미지 라운드 (dp/pt, 기본 12) */
|
|
268
|
+
sourceCornerRadius?: number
|
|
269
|
+
/** 마커·버튼 색 (기본: setDefaults 의 themeColor) */
|
|
270
|
+
themeColor?: string
|
|
271
|
+
languageCode?: LanguageCode
|
|
272
|
+
appearance?: Appearance
|
|
273
|
+
}
|
|
274
|
+
|
|
68
275
|
export interface ViewerOptions {
|
|
69
276
|
images: string[]
|
|
70
277
|
placeholderImages?: string[]
|
|
@@ -187,17 +394,6 @@ export interface EditorOptions {
|
|
|
187
394
|
closeDuration?: number
|
|
188
395
|
}
|
|
189
396
|
|
|
190
|
-
export interface RNAttachmentKit {
|
|
191
|
-
init(licenseKey: string): Promise<boolean>
|
|
192
|
-
openGallery(options?: GalleryOptions): Promise<ImageResult[]>
|
|
193
|
-
openEditor(options: EditorOptions): Promise<ImageResult>
|
|
194
|
-
openViewer(options: ViewerOptions): Promise<void>
|
|
195
|
-
updateViewerSourceRect(rect: SourceRect): Promise<void>
|
|
196
|
-
closeGallery(): Promise<boolean>
|
|
197
|
-
addSelectionChangeListener(listener: (event: SelectionChangeEvent) => void): () => void
|
|
198
|
-
getDefaultAnimationConfig(): Promise<{ galleryOpen: number, galleryClose: number, editorOpen: number, editorClose: number, viewerOpen: number, viewerClose: number }>
|
|
199
|
-
}
|
|
200
|
-
|
|
201
397
|
// MARK: - Media gallery (사진 모아보기)
|
|
202
398
|
|
|
203
399
|
/** 갤러리 항목. 썸네일은 파일 경로만 주고받습니다(base64 금지). */
|