@transfergratis/react-native-sdk 0.1.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/README.md +539 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +14 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build.gradle +47 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +28 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
- package/android/src/main/res/xml/file_paths.xml +15 -0
- package/build/App.d.ts +3 -0
- package/build/App.d.ts.map +1 -0
- package/build/App.js +9 -0
- package/build/App.js.map +1 -0
- package/build/TransfergratisSdk.types.d.ts +32 -0
- package/build/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/TransfergratisSdk.types.js +2 -0
- package/build/TransfergratisSdk.types.js.map +1 -0
- package/build/TransfergratisSdkModule.d.ts +21 -0
- package/build/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.js +4 -0
- package/build/TransfergratisSdkModule.js.map +1 -0
- package/build/TransfergratisSdkModule.web.d.ts +20 -0
- package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.web.js +25 -0
- package/build/TransfergratisSdkModule.web.js.map +1 -0
- package/build/TransfergratisSdkView.d.ts +4 -0
- package/build/TransfergratisSdkView.d.ts.map +1 -0
- package/build/TransfergratisSdkView.js +7 -0
- package/build/TransfergratisSdkView.js.map +1 -0
- package/build/TransfergratisSdkView.web.d.ts +4 -0
- package/build/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/TransfergratisSdkView.web.js +11 -0
- package/build/TransfergratisSdkView.web.js.map +1 -0
- package/build/components/Camera/index.d.ts +2 -0
- package/build/components/Camera/index.d.ts.map +1 -0
- package/build/components/Camera/index.js +2 -0
- package/build/components/Camera/index.js.map +1 -0
- package/build/components/Camera/index.web.d.ts +2 -0
- package/build/components/Camera/index.web.d.ts.map +1 -0
- package/build/components/Camera/index.web.js +2 -0
- package/build/components/Camera/index.web.js.map +1 -0
- package/build/components/Camera/types.d.ts +2 -0
- package/build/components/Camera/types.d.ts.map +1 -0
- package/build/components/Camera/types.js +2 -0
- package/build/components/Camera/types.js.map +1 -0
- package/build/components/ConfigurableKYCFlow.d.ts +11 -0
- package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/components/ConfigurableKYCFlow.js +257 -0
- package/build/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/components/CustomCameraExample.d.ts +10 -0
- package/build/components/CustomCameraExample.d.ts.map +1 -0
- package/build/components/CustomCameraExample.js +232 -0
- package/build/components/CustomCameraExample.js.map +1 -0
- package/build/components/EnhancedCameraView.d.ts +44 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +316 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +44 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +399 -0
- package/build/components/EnhancedCameraView.web.js.map +1 -0
- package/build/components/FileUpload.d.ts +13 -0
- package/build/components/FileUpload.d.ts.map +1 -0
- package/build/components/FileUpload.js +216 -0
- package/build/components/FileUpload.js.map +1 -0
- package/build/components/KYCElementRenderer.d.ts +14 -0
- package/build/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/components/KYCElementRenderer.js +31 -0
- package/build/components/KYCElementRenderer.js.map +1 -0
- package/build/components/KYCElements/CameraCapture.d.ts +11 -0
- package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/components/KYCElements/CameraCapture.js +218 -0
- package/build/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/components/KYCElements/CompletionStep.d.ts +10 -0
- package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/components/KYCElements/CompletionStep.js +147 -0
- package/build/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/components/KYCElements/CountrySelection.d.ts +11 -0
- package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelection.js +147 -0
- package/build/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
- package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/components/KYCElements/FileUpload.d.ts +11 -0
- package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/components/KYCElements/FileUpload.js +267 -0
- package/build/components/KYCElements/FileUpload.js.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.js +326 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +421 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
- package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCapture.js +235 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationStep.d.ts +10 -0
- package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationStep.js +199 -0
- package/build/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/components/KYCExample.d.ts +3 -0
- package/build/components/KYCExample.d.ts.map +1 -0
- package/build/components/KYCExample.js +247 -0
- package/build/components/KYCExample.js.map +1 -0
- package/build/components/KYCFlow.d.ts +3 -0
- package/build/components/KYCFlow.d.ts.map +1 -0
- package/build/components/KYCFlow.js +308 -0
- package/build/components/KYCFlow.js.map +1 -0
- package/build/components/NativeCameraView.d.ts +11 -0
- package/build/components/NativeCameraView.d.ts.map +1 -0
- package/build/components/NativeCameraView.js +27 -0
- package/build/components/NativeCameraView.js.map +1 -0
- package/build/components/OverLay/IdCard.d.ts +4 -0
- package/build/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/components/OverLay/IdCard.js +181 -0
- package/build/components/OverLay/IdCard.js.map +1 -0
- package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
- package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/components/OverLay/SelfieOverlay.js +168 -0
- package/build/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/components/OverLay/StepOverlay.d.ts +9 -0
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/components/OverLay/StepOverlay.js +51 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +21 -0
- package/build/components/OverLay/type.d.ts.map +1 -0
- package/build/components/OverLay/type.js +2 -0
- package/build/components/OverLay/type.js.map +1 -0
- package/build/components/ProgressIndicator.d.ts +8 -0
- package/build/components/ProgressIndicator.d.ts.map +1 -0
- package/build/components/ProgressIndicator.js +48 -0
- package/build/components/ProgressIndicator.js.map +1 -0
- package/build/components/SelfieCapture.d.ts +3 -0
- package/build/components/SelfieCapture.d.ts.map +1 -0
- package/build/components/SelfieCapture.js +197 -0
- package/build/components/SelfieCapture.js.map +1 -0
- package/build/components/SimpleExample.d.ts +3 -0
- package/build/components/SimpleExample.d.ts.map +1 -0
- package/build/components/SimpleExample.js +89 -0
- package/build/components/SimpleExample.js.map +1 -0
- package/build/components/Svgs/GpsIcon.d.ts +3 -0
- package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/components/Svgs/GpsIcon.js +9 -0
- package/build/components/Svgs/GpsIcon.js.map +1 -0
- package/build/components/Svgs/Schield.d.ts +3 -0
- package/build/components/Svgs/Schield.d.ts.map +1 -0
- package/build/components/Svgs/Schield.js +22 -0
- package/build/components/Svgs/Schield.js.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.js +11 -0
- package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/components/Svgs/scanningLine.d.ts +9 -0
- package/build/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/components/Svgs/scanningLine.js +61 -0
- package/build/components/Svgs/scanningLine.js.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.js +9 -0
- package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/components/TemplateKYCExample.d.ts +7 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +433 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +210 -0
- package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/components/VisionCameraView.d.ts +22 -0
- package/build/components/VisionCameraView.d.ts.map +1 -0
- package/build/components/VisionCameraView.js +142 -0
- package/build/components/VisionCameraView.js.map +1 -0
- package/build/components/example/CameraCaptureEx.d.ts +4 -0
- package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/components/example/CameraCaptureEx.js +219 -0
- package/build/components/example/CameraCaptureEx.js.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.js +229 -0
- package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/components/example/CameraCaptureExScan.d.ts +3 -0
- package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExScan.js +213 -0
- package/build/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
- package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExSimple.js +138 -0
- package/build/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/components/example/OrientationVideoExample.d.ts +4 -0
- package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/components/example/OrientationVideoExample.js +329 -0
- package/build/components/example/OrientationVideoExample.js.map +1 -0
- package/build/components/example/SelfieCaptureEx.d.ts +4 -0
- package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/components/example/SelfieCaptureEx.js +238 -0
- package/build/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/components/ui/Button.d.ts +37 -0
- package/build/components/ui/Button.d.ts.map +1 -0
- package/build/components/ui/Button.js +194 -0
- package/build/components/ui/Button.js.map +1 -0
- package/build/components/ui/ButtonExample.d.ts +4 -0
- package/build/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/components/ui/ButtonExample.js +209 -0
- package/build/components/ui/ButtonExample.js.map +1 -0
- package/build/components/ui/ButtonStyles.d.ts +521 -0
- package/build/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/components/ui/ButtonStyles.js +429 -0
- package/build/components/ui/ButtonStyles.js.map +1 -0
- package/build/config/KYCConfigs.d.ts +7 -0
- package/build/config/KYCConfigs.d.ts.map +1 -0
- package/build/config/KYCConfigs.js +516 -0
- package/build/config/KYCConfigs.js.map +1 -0
- package/build/hooks/useKYC.d.ts +15 -0
- package/build/hooks/useKYC.d.ts.map +1 -0
- package/build/hooks/useKYC.js +103 -0
- package/build/hooks/useKYC.js.map +1 -0
- package/build/hooks/useKYCFlow.d.ts +3 -0
- package/build/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/hooks/useKYCFlow.js +221 -0
- package/build/hooks/useKYCFlow.js.map +1 -0
- package/build/hooks/useLocation.d.ts +32 -0
- package/build/hooks/useLocation.d.ts.map +1 -0
- package/build/hooks/useLocation.js +165 -0
- package/build/hooks/useLocation.js.map +1 -0
- package/build/hooks/useOrientationVideo.d.ts +10 -0
- package/build/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/hooks/useOrientationVideo.js +117 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +221 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/index.d.ts +34 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +45 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +35 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +119 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/camera/NativeCameraModule.d.ts +52 -0
- package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/modules/camera/NativeCameraModule.js +149 -0
- package/build/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.js +125 -0
- package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.d.ts +62 -0
- package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.js +198 -0
- package/build/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.js +570 -0
- package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/modules/camera/index.d.ts +5 -0
- package/build/modules/camera/index.d.ts.map +1 -0
- package/build/modules/camera/index.js +4 -0
- package/build/modules/camera/index.js.map +1 -0
- package/build/stores/kycStore.d.ts +55 -0
- package/build/stores/kycStore.d.ts.map +1 -0
- package/build/stores/kycStore.js +98 -0
- package/build/stores/kycStore.js.map +1 -0
- package/build/types/KYC.types.d.ts +326 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +2 -0
- package/build/types/KYC.types.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/TransfergratisSdk.podspec +31 -0
- package/ios/TransfergratisSdkModule.swift +409 -0
- package/package.json +67 -0
- package/plugin/build/index.d.ts +4 -0
- package/plugin/build/index.js +10 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +69 -0
- package/plugin/src/index.ts +4 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withVisionCamera.js +89 -0
- package/plugin/src/withVisionCamera.ts +98 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +14 -0
- package/src/App.tsx +9 -0
- package/src/TransfergratisSdk.types.ts +30 -0
- package/src/TransfergratisSdkModule.ts +16 -0
- package/src/TransfergratisSdkModule.web.ts +31 -0
- package/src/TransfergratisSdkView.tsx +11 -0
- package/src/TransfergratisSdkView.web.tsx +15 -0
- package/src/components/Camera/index.tsx +0 -0
- package/src/components/Camera/index.web.tsx +0 -0
- package/src/components/Camera/types.ts +0 -0
- package/src/components/ConfigurableKYCFlow.tsx +334 -0
- package/src/components/CustomCameraExample.tsx +274 -0
- package/src/components/EnhancedCameraView.tsx +421 -0
- package/src/components/EnhancedCameraView.web.tsx +517 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/CameraCapture.tsx +267 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/FileUpload.tsx +317 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
- package/src/components/KYCElements/IDCardCapture.tsx +519 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
- package/src/components/KYCElements/SelfieCapture.tsx +283 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCExample.tsx +297 -0
- package/src/components/KYCFlow.tsx +377 -0
- package/src/components/NativeCameraView.tsx +47 -0
- package/src/components/OverLay/IdCard.tsx +269 -0
- package/src/components/OverLay/SelfieOverlay.tsx +210 -0
- package/src/components/OverLay/StepOverlay.tsx +62 -0
- package/src/components/OverLay/type.ts +21 -0
- package/src/components/ProgressIndicator.tsx +62 -0
- package/src/components/SelfieCapture.tsx +244 -0
- package/src/components/SimpleExample.tsx +92 -0
- package/src/components/Svgs/GpsIcon.tsx +12 -0
- package/src/components/Svgs/Schield.tsx +26 -0
- package/src/components/Svgs/directionArrow.gif +0 -0
- package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
- package/src/components/Svgs/scanningLine.tsx +88 -0
- package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
- package/src/components/TemplateKYCExample.tsx +447 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
- package/src/components/VisionCameraView.tsx +197 -0
- package/src/components/example/CameraCaptureEx.tsx +335 -0
- package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
- package/src/components/example/CameraCaptureExScan.tsx +336 -0
- package/src/components/example/CameraCaptureExSimple.tsx +215 -0
- package/src/components/example/OrientationVideoExample.tsx +384 -0
- package/src/components/example/SelfieCaptureEx.tsx +358 -0
- package/src/components/ui/Button.tsx +328 -0
- package/src/components/ui/ButtonExample.tsx +318 -0
- package/src/components/ui/ButtonStyles.ts +465 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/hooks/useKYC.ts +131 -0
- package/src/hooks/useKYCFlow.ts +248 -0
- package/src/hooks/useLocation.ts +221 -0
- package/src/hooks/useOrientationVideo.ts +148 -0
- package/src/hooks/useTemplateKYCFlow.tsx +292 -0
- package/src/index.ts +72 -0
- package/src/modules/api/KYCService.ts +171 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +217 -0
- package/src/modules/camera/VisionCameraModule.web.ts +661 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +434 -0
- package/src/types/nativewind.d.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureEx.js","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,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AAwB,EAAE;QACtB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,oBAAoB,EAAE;QAClB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,WAAW,EAAE;QACT,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACtB;IAGD,KAAK,EAAE;QACH,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC,CAAA;AAEF,eAAe,eAAe,CAAA","sourcesContent":["import { StyleSheet, View, Dimensions, Text, Animated, Image } from \"react-native\"\nimport { EnhancedCameraView } from \"../EnhancedCameraView\"\nimport Svg, { Rect, Path, Mask, Defs } from 'react-native-svg';\nimport React, { useEffect, useRef, useState } from 'react';\nimport ScanningLine from \"../Svgs/scanningLine\";\n\nconst CameraCaptureEx = () => {\n const { width: screenWidth, height: screenHeight } = Dimensions.get('window');\n\n\n const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]\n const [xMin, yMin, xMax, yMax] = bbox;\n const boxWidth = xMax - xMin;\n const boxHeight = yMax - yMin;\n\n // Animations\n const instructionAnimation = useRef(new Animated.Value(0)).current;\n\n const [cornerOpacity, setCornerOpacity] = useState(0.8);\n\n const [imageUrl, setImageUrl] = useState<string | null>(null);\n\n const scanY = useRef(new Animated.Value(yMin)).current;\n\n\n useEffect(() => {\n // Animation boucle : descend puis remonte\n Animated.loop(\n Animated.sequence([\n Animated.timing(scanY, {\n toValue: yMax,\n duration: 2000,\n useNativeDriver: false,\n }),\n Animated.timing(scanY, {\n toValue: yMin,\n duration: 2000,\n useNativeDriver: false,\n }),\n ])\n ).start();\n }, [scanY, yMin, yMax]);\n\n useEffect(() => {\n // Animation des instructions\n const instructionSequence = Animated.loop(\n Animated.sequence([\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 600,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 0.95,\n duration: 200,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 200,\n useNativeDriver: false,\n }),\n ])\n );\n\n // Animation des coins avec setState\n const cornerInterval = setInterval(() => {\n setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);\n }, 800);\n\n\n\n\n // Démarrer les animations\n instructionSequence.start();\n\n return () => {\n instructionSequence.stop();\n clearInterval(cornerInterval);\n\n };\n }, [instructionAnimation, xMin, xMax]);\n\n if (imageUrl) {\n return (\n <View style={\n {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n }\n }>\n\n <View style={\n {\n\n justifyContent: 'center',\n alignItems: 'center',\n }\n }>\n <Image\n source={{ uri: imageUrl }}\n style={[styles.image,\n {\n width: boxWidth,\n height: boxHeight,\n marginLeft: -xMin,\n marginTop: -yMin,\n\n },\n ]} />\n </View>\n\n </View>\n )\n }\n\n return (\n <EnhancedCameraView\n showCamera={true}\n showSwitchCamera={false}\n bbox={{\n xMin: 150,\n yMin: 210,\n xMax: 350,\n yMax: 410,\n borderColor: \"#2DBD60\",\n borderWidth: 3,\n cornerRadius: 8\n }}\n onCapture={(image) => {\n setImageUrl(image.path ?? null);\n }}\n overlayComponent={\n <View style={StyleSheet.absoluteFill}>\n <Animated.View\n style={[\n styles.topIntruction,\n\n ]}\n >\n <Text style={styles.topIntructionText}>\n 💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.\n </Text>\n </Animated.View>\n\n <Svg\n height={screenHeight}\n width={screenWidth}\n style={styles.svg}\n >\n <Defs>\n <Mask id=\"cameraMask\">\n {/* Fond blanc - zone visible */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"white\"\n />\n {/* Zone noire - zone masquée (transparente) */}\n <Rect\n x={xMin}\n y={yMin}\n width={boxWidth}\n height={boxHeight}\n fill=\"black\"\n />\n </Mask>\n </Defs>\n\n {/* Overlay semi-transparent avec masque */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"rgba(0, 0, 0, 0.5)\"\n mask=\"url(#cameraMask)\"\n />\n\n {/* Coins de la zone de capture - arrondis avec animation */}\n <Path\n d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n </Svg>\n <ScanningLine yMin={yMin} screenWidth={screenWidth} height={screenHeight} yMax={yMax} />\n\n <View style={styles.bottomIntruction}>\n <Text style={styles.bottomTitle}>\n Mesurez 100cm de hauteur.\n </Text>\n <Text style={styles.bottomSubtitle}>\n Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.\n </Text>\n </View>\n </View>\n }\n />\n )\n}\n\nconst styles = StyleSheet.create({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '50%',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n topIntruction: {\n zIndex: 1000,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 20,\n paddingHorizontal: 10,\n marginHorizontal: 20,\n marginTop: 10,\n backgroundColor: \"#FDE04730\",\n borderColor: \"#FDE047\",\n borderWidth: 1,\n borderRadius: 10,\n gap: 10,\n },\n topIntructionText: {\n color: '#FDE047',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntruction: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: '35%',\n paddingHorizontal: 20,\n },\n bottomIntructionTextBold: {\n color: 'white',\n fontSize: 16,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntructionText: {\n color: 'white',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomTitle: {\n color: 'white',\n fontSize: 25,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomSubtitle: {\n color: 'white',\n marginTop: 15,\n fontSize: 14,\n fontWeight: '500',\n textAlign: 'center',\n },\n\n\n image: {\n position: 'absolute',\n borderRadius: 10,\n },\n})\n\nexport default CameraCaptureEx"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureExAdvanced.d.ts","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureExAdvanced.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,uBAAuB,mCAqR5B,CAAA;AA0ED,eAAe,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { StyleSheet, View, Dimensions, Text, Animated } from "react-native";
|
|
2
|
+
import { EnhancedCameraView } from "../EnhancedCameraView";
|
|
3
|
+
import Svg, { Circle, Rect, Path, Mask, Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
4
|
+
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
const CameraCaptureExAdvanced = () => {
|
|
6
|
+
const { width: screenWidth, height: screenHeight } = Dimensions.get('window');
|
|
7
|
+
const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]
|
|
8
|
+
const [xMin, yMin, xMax, yMax] = bbox;
|
|
9
|
+
const boxWidth = xMax - xMin;
|
|
10
|
+
const boxHeight = yMax - yMin;
|
|
11
|
+
// Animations
|
|
12
|
+
const instructionAnimation = useRef(new Animated.Value(0)).current;
|
|
13
|
+
const scanLineAnimation = useRef(new Animated.Value(0)).current;
|
|
14
|
+
const pulseAnimation = useRef(new Animated.Value(1)).current;
|
|
15
|
+
const [cornerOpacity, setCornerOpacity] = useState(0.8);
|
|
16
|
+
const [scanLineY, setScanLineY] = useState(yMin);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
// Animation des instructions avec effet de pulsation
|
|
19
|
+
const instructionSequence = Animated.loop(Animated.sequence([
|
|
20
|
+
Animated.timing(instructionAnimation, {
|
|
21
|
+
toValue: 1,
|
|
22
|
+
duration: 800,
|
|
23
|
+
useNativeDriver: false,
|
|
24
|
+
}),
|
|
25
|
+
Animated.timing(instructionAnimation, {
|
|
26
|
+
toValue: 0.9,
|
|
27
|
+
duration: 200,
|
|
28
|
+
useNativeDriver: false,
|
|
29
|
+
}),
|
|
30
|
+
Animated.timing(instructionAnimation, {
|
|
31
|
+
toValue: 1,
|
|
32
|
+
duration: 200,
|
|
33
|
+
useNativeDriver: false,
|
|
34
|
+
}),
|
|
35
|
+
Animated.delay(2000), // Pause de 2 secondes
|
|
36
|
+
]));
|
|
37
|
+
// Animation de pulsation générale
|
|
38
|
+
const pulseLoop = Animated.loop(Animated.sequence([
|
|
39
|
+
Animated.timing(pulseAnimation, {
|
|
40
|
+
toValue: 1.1,
|
|
41
|
+
duration: 1500,
|
|
42
|
+
useNativeDriver: false,
|
|
43
|
+
}),
|
|
44
|
+
Animated.timing(pulseAnimation, {
|
|
45
|
+
toValue: 1,
|
|
46
|
+
duration: 1500,
|
|
47
|
+
useNativeDriver: false,
|
|
48
|
+
}),
|
|
49
|
+
]));
|
|
50
|
+
// Animation de la ligne de scan
|
|
51
|
+
const scanLineLoop = Animated.loop(Animated.timing(scanLineAnimation, {
|
|
52
|
+
toValue: 1,
|
|
53
|
+
duration: 3000,
|
|
54
|
+
useNativeDriver: false,
|
|
55
|
+
}));
|
|
56
|
+
// Animation des coins avec setState
|
|
57
|
+
const cornerInterval = setInterval(() => {
|
|
58
|
+
setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);
|
|
59
|
+
}, 600);
|
|
60
|
+
// Animation de la ligne de scan avec setState
|
|
61
|
+
const scanLineInterval = setInterval(() => {
|
|
62
|
+
setScanLineY(prev => {
|
|
63
|
+
const newY = prev + 2;
|
|
64
|
+
return newY > yMax ? yMin : newY;
|
|
65
|
+
});
|
|
66
|
+
}, 50);
|
|
67
|
+
// Démarrer les animations
|
|
68
|
+
instructionSequence.start();
|
|
69
|
+
pulseLoop.start();
|
|
70
|
+
scanLineLoop.start();
|
|
71
|
+
return () => {
|
|
72
|
+
instructionSequence.stop();
|
|
73
|
+
pulseLoop.stop();
|
|
74
|
+
scanLineLoop.stop();
|
|
75
|
+
clearInterval(cornerInterval);
|
|
76
|
+
clearInterval(scanLineInterval);
|
|
77
|
+
};
|
|
78
|
+
}, [instructionAnimation, scanLineAnimation, pulseAnimation, yMin, yMax]);
|
|
79
|
+
return (<EnhancedCameraView showCamera={true} showSwitchCamera={false} bbox={{
|
|
80
|
+
xMin: 150,
|
|
81
|
+
yMin: 210,
|
|
82
|
+
xMax: 350,
|
|
83
|
+
yMax: 410,
|
|
84
|
+
borderColor: "#2DBD60",
|
|
85
|
+
borderWidth: 3,
|
|
86
|
+
cornerRadius: 8
|
|
87
|
+
}} overlayComponent={<View style={StyleSheet.absoluteFill}>
|
|
88
|
+
<Animated.View style={[
|
|
89
|
+
styles.topIntruction,
|
|
90
|
+
{
|
|
91
|
+
opacity: instructionAnimation,
|
|
92
|
+
transform: [{ scale: instructionAnimation }]
|
|
93
|
+
}
|
|
94
|
+
]}>
|
|
95
|
+
<Text style={styles.topIntructionText}>
|
|
96
|
+
💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.
|
|
97
|
+
</Text>
|
|
98
|
+
</Animated.View>
|
|
99
|
+
|
|
100
|
+
<Svg height={screenHeight} width={screenWidth} style={styles.svg}>
|
|
101
|
+
<Defs>
|
|
102
|
+
<Mask id="cameraMask">
|
|
103
|
+
{/* Fond blanc - zone visible */}
|
|
104
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="white"/>
|
|
105
|
+
{/* Zone noire - zone masquée (transparente) */}
|
|
106
|
+
<Rect x={xMin} y={yMin} width={boxWidth} height={boxHeight} fill="black"/>
|
|
107
|
+
</Mask>
|
|
108
|
+
|
|
109
|
+
{/* Gradient pour les coins */}
|
|
110
|
+
<LinearGradient id="cornerGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
111
|
+
<Stop offset="0%" stopColor="#4CAF50" stopOpacity="1"/>
|
|
112
|
+
<Stop offset="100%" stopColor="#00FF00" stopOpacity="1"/>
|
|
113
|
+
</LinearGradient>
|
|
114
|
+
</Defs>
|
|
115
|
+
|
|
116
|
+
{/* Overlay semi-transparent avec masque */}
|
|
117
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="rgba(0, 0, 0, 0.6)" mask="url(#cameraMask)"/>
|
|
118
|
+
|
|
119
|
+
{/* Coins de la zone de capture - arrondis avec animation et gradient */}
|
|
120
|
+
<Path d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`} stroke="url(#cornerGradient)" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
121
|
+
<Path d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`} stroke="url(#cornerGradient)" strokeWidth="8" opacity={cornerOpacity}/>
|
|
122
|
+
|
|
123
|
+
<Path d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`} stroke="url(#cornerGradient)" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
124
|
+
<Path d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`} stroke="url(#cornerGradient)" strokeWidth="8" opacity={cornerOpacity}/>
|
|
125
|
+
|
|
126
|
+
<Path d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`} stroke="url(#cornerGradient)" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
127
|
+
<Path d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`} stroke="url(#cornerGradient)" strokeWidth="8" opacity={cornerOpacity}/>
|
|
128
|
+
|
|
129
|
+
<Path d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`} stroke="url(#cornerGradient)" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
130
|
+
<Path d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`} stroke="url(#cornerGradient)" strokeWidth="8" opacity={cornerOpacity}/>
|
|
131
|
+
|
|
132
|
+
{/* Ligne de scan animée */}
|
|
133
|
+
<Path d={`M ${xMin} ${scanLineY} L ${xMax} ${scanLineY}`} stroke="#00FF00" strokeWidth="3" strokeDasharray="15,10" opacity={0.8}/>
|
|
134
|
+
|
|
135
|
+
{/* Points de guidage animés */}
|
|
136
|
+
<Circle cx={xMin + boxWidth * 0.25} cy={yMin + boxHeight * 0.25} r="3" fill="#FF5722" opacity={cornerOpacity}/>
|
|
137
|
+
<Circle cx={xMin + boxWidth * 0.75} cy={yMin + boxHeight * 0.25} r="3" fill="#FF5722" opacity={cornerOpacity}/>
|
|
138
|
+
<Circle cx={xMin + boxWidth * 0.25} cy={yMin + boxHeight * 0.75} r="3" fill="#FF5722" opacity={cornerOpacity}/>
|
|
139
|
+
<Circle cx={xMin + boxWidth * 0.75} cy={yMin + boxHeight * 0.75} r="3" fill="#FF5722" opacity={cornerOpacity}/>
|
|
140
|
+
</Svg>
|
|
141
|
+
|
|
142
|
+
<Animated.View style={[
|
|
143
|
+
styles.bottomIntruction,
|
|
144
|
+
{
|
|
145
|
+
transform: [{ scale: pulseAnimation }]
|
|
146
|
+
}
|
|
147
|
+
]}>
|
|
148
|
+
<Text style={styles.bottomTitle}>
|
|
149
|
+
Mesurez 100cm de hauteur.
|
|
150
|
+
</Text>
|
|
151
|
+
<Text style={styles.bottomSubtitle}>
|
|
152
|
+
Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.
|
|
153
|
+
</Text>
|
|
154
|
+
</Animated.View>
|
|
155
|
+
</View>}/>);
|
|
156
|
+
};
|
|
157
|
+
const styles = StyleSheet.create({
|
|
158
|
+
overlay: {
|
|
159
|
+
position: 'absolute',
|
|
160
|
+
top: 0,
|
|
161
|
+
left: 0,
|
|
162
|
+
width: '100%',
|
|
163
|
+
height: '50%',
|
|
164
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
165
|
+
},
|
|
166
|
+
svg: {
|
|
167
|
+
position: 'absolute',
|
|
168
|
+
top: 0,
|
|
169
|
+
left: 0,
|
|
170
|
+
width: '100%',
|
|
171
|
+
height: '100%',
|
|
172
|
+
},
|
|
173
|
+
topIntruction: {
|
|
174
|
+
zIndex: 1000,
|
|
175
|
+
flexDirection: 'row',
|
|
176
|
+
alignItems: 'center',
|
|
177
|
+
justifyContent: 'center',
|
|
178
|
+
paddingVertical: 20,
|
|
179
|
+
paddingHorizontal: 10,
|
|
180
|
+
marginHorizontal: 20,
|
|
181
|
+
marginTop: 10,
|
|
182
|
+
backgroundColor: "#FDE04730",
|
|
183
|
+
borderColor: "#FDE047",
|
|
184
|
+
borderWidth: 1,
|
|
185
|
+
borderRadius: 10,
|
|
186
|
+
gap: 10,
|
|
187
|
+
},
|
|
188
|
+
topIntructionText: {
|
|
189
|
+
color: '#FDE047',
|
|
190
|
+
fontSize: 14,
|
|
191
|
+
fontWeight: 'bold',
|
|
192
|
+
textAlign: 'center',
|
|
193
|
+
},
|
|
194
|
+
bottomIntruction: {
|
|
195
|
+
position: 'absolute',
|
|
196
|
+
bottom: 0,
|
|
197
|
+
left: 0,
|
|
198
|
+
width: '100%',
|
|
199
|
+
height: '35%',
|
|
200
|
+
paddingHorizontal: 20,
|
|
201
|
+
},
|
|
202
|
+
bottomIntructionTextBold: {
|
|
203
|
+
color: 'white',
|
|
204
|
+
fontSize: 16,
|
|
205
|
+
fontWeight: 'bold',
|
|
206
|
+
textAlign: 'center',
|
|
207
|
+
},
|
|
208
|
+
bottomIntructionText: {
|
|
209
|
+
color: 'white',
|
|
210
|
+
fontSize: 14,
|
|
211
|
+
fontWeight: 'bold',
|
|
212
|
+
textAlign: 'center',
|
|
213
|
+
},
|
|
214
|
+
bottomTitle: {
|
|
215
|
+
color: 'white',
|
|
216
|
+
fontSize: 25,
|
|
217
|
+
fontWeight: 'bold',
|
|
218
|
+
textAlign: 'center',
|
|
219
|
+
},
|
|
220
|
+
bottomSubtitle: {
|
|
221
|
+
color: 'white',
|
|
222
|
+
marginTop: 15,
|
|
223
|
+
fontSize: 14,
|
|
224
|
+
fontWeight: '500',
|
|
225
|
+
textAlign: 'center',
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
export default CameraCaptureExAdvanced;
|
|
229
|
+
//# sourceMappingURL=CameraCaptureExAdvanced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureExAdvanced.js","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureExAdvanced.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE9E,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,2BAA2B;IAC7D,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;IACtC,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;IA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QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACtB;CACJ,CAAC,CAAA;AAEF,eAAe,uBAAuB,CAAA","sourcesContent":["import { StyleSheet, View, Dimensions, Text, Animated } from \"react-native\"\nimport { EnhancedCameraView } from \"../EnhancedCameraView\"\nimport Svg, { Circle, Rect, Path, Mask, Defs, LinearGradient, Stop } from 'react-native-svg';\nimport { useEffect, useRef, useState } from 'react';\n\nconst CameraCaptureExAdvanced = () => {\n const { width: screenWidth, height: screenHeight } = Dimensions.get('window');\n\n const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]\n const [xMin, yMin, xMax, yMax] = bbox;\n const boxWidth = xMax - xMin;\n const boxHeight = yMax - yMin;\n\n // Animations\n const instructionAnimation = useRef(new Animated.Value(0)).current;\n const scanLineAnimation = useRef(new Animated.Value(0)).current;\n const pulseAnimation = useRef(new Animated.Value(1)).current;\n const [cornerOpacity, setCornerOpacity] = useState(0.8);\n const [scanLineY, setScanLineY] = useState(yMin);\n\n useEffect(() => {\n // Animation des instructions avec effet de pulsation\n const instructionSequence = Animated.loop(\n Animated.sequence([\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 800,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 0.9,\n duration: 200,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 200,\n useNativeDriver: false,\n }),\n Animated.delay(2000), // Pause de 2 secondes\n ])\n );\n\n // Animation de pulsation générale\n const pulseLoop = Animated.loop(\n Animated.sequence([\n Animated.timing(pulseAnimation, {\n toValue: 1.1,\n duration: 1500,\n useNativeDriver: false,\n }),\n Animated.timing(pulseAnimation, {\n toValue: 1,\n duration: 1500,\n useNativeDriver: false,\n }),\n ])\n );\n\n // Animation de la ligne de scan\n const scanLineLoop = Animated.loop(\n Animated.timing(scanLineAnimation, {\n toValue: 1,\n duration: 3000,\n useNativeDriver: false,\n })\n );\n\n // Animation des coins avec setState\n const cornerInterval = setInterval(() => {\n setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);\n }, 600);\n\n // Animation de la ligne de scan avec setState\n const scanLineInterval = setInterval(() => {\n setScanLineY(prev => {\n const newY = prev + 2;\n return newY > yMax ? yMin : newY;\n });\n }, 50);\n\n // Démarrer les animations\n instructionSequence.start();\n pulseLoop.start();\n scanLineLoop.start();\n\n return () => {\n instructionSequence.stop();\n pulseLoop.stop();\n scanLineLoop.stop();\n clearInterval(cornerInterval);\n clearInterval(scanLineInterval);\n };\n }, [instructionAnimation, scanLineAnimation, pulseAnimation, yMin, yMax]);\n\n return (\n <EnhancedCameraView\n showCamera={true}\n showSwitchCamera={false}\n bbox={{\n xMin: 150,\n yMin: 210,\n xMax: 350,\n yMax: 410,\n borderColor: \"#2DBD60\",\n borderWidth: 3,\n cornerRadius: 8\n }}\n overlayComponent={\n <View style={StyleSheet.absoluteFill}>\n <Animated.View \n style={[\n styles.topIntruction,\n {\n opacity: instructionAnimation,\n transform: [{ scale: instructionAnimation }]\n }\n ]}\n >\n <Text style={styles.topIntructionText}>\n 💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.\n </Text>\n </Animated.View>\n \n <Svg\n height={screenHeight}\n width={screenWidth}\n style={styles.svg}\n >\n <Defs>\n <Mask id=\"cameraMask\">\n {/* Fond blanc - zone visible */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"white\"\n />\n {/* Zone noire - zone masquée (transparente) */}\n <Rect\n x={xMin}\n y={yMin}\n width={boxWidth}\n height={boxHeight}\n fill=\"black\"\n />\n </Mask>\n \n {/* Gradient pour les coins */}\n <LinearGradient id=\"cornerGradient\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <Stop offset=\"0%\" stopColor=\"#4CAF50\" stopOpacity=\"1\" />\n <Stop offset=\"100%\" stopColor=\"#00FF00\" stopOpacity=\"1\" />\n </LinearGradient>\n </Defs>\n\n {/* Overlay semi-transparent avec masque */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"rgba(0, 0, 0, 0.6)\"\n mask=\"url(#cameraMask)\"\n />\n\n {/* Coins de la zone de capture - arrondis avec animation et gradient */}\n <Path\n d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`}\n stroke=\"url(#cornerGradient)\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n {/* Ligne de scan animée */}\n <Path\n d={`M ${xMin} ${scanLineY} L ${xMax} ${scanLineY}`}\n stroke=\"#00FF00\"\n strokeWidth=\"3\"\n strokeDasharray=\"15,10\"\n opacity={0.8}\n />\n\n {/* Points de guidage animés */}\n <Circle\n cx={xMin + boxWidth * 0.25}\n cy={yMin + boxHeight * 0.25}\n r=\"3\"\n fill=\"#FF5722\"\n opacity={cornerOpacity}\n />\n <Circle\n cx={xMin + boxWidth * 0.75}\n cy={yMin + boxHeight * 0.25}\n r=\"3\"\n fill=\"#FF5722\"\n opacity={cornerOpacity}\n />\n <Circle\n cx={xMin + boxWidth * 0.25}\n cy={yMin + boxHeight * 0.75}\n r=\"3\"\n fill=\"#FF5722\"\n opacity={cornerOpacity}\n />\n <Circle\n cx={xMin + boxWidth * 0.75}\n cy={yMin + boxHeight * 0.75}\n r=\"3\"\n fill=\"#FF5722\"\n opacity={cornerOpacity}\n />\n </Svg>\n \n <Animated.View \n style={[\n styles.bottomIntruction,\n {\n transform: [{ scale: pulseAnimation }]\n }\n ]}\n >\n <Text style={styles.bottomTitle}>\n Mesurez 100cm de hauteur.\n </Text>\n <Text style={styles.bottomSubtitle}>\n Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.\n </Text>\n </Animated.View>\n </View>\n }\n />\n )\n}\n\nconst styles = StyleSheet.create({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '50%',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n topIntruction: {\n zIndex: 1000,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 20,\n paddingHorizontal: 10,\n marginHorizontal: 20,\n marginTop: 10,\n backgroundColor: \"#FDE04730\",\n borderColor: \"#FDE047\",\n borderWidth: 1,\n borderRadius: 10,\n gap: 10,\n },\n topIntructionText: {\n color: '#FDE047',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntruction: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: '35%',\n paddingHorizontal: 20,\n },\n bottomIntructionTextBold: {\n color: 'white',\n fontSize: 16,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntructionText: {\n color: 'white',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomTitle: {\n color: 'white',\n fontSize: 25,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomSubtitle: {\n color: 'white',\n marginTop: 15,\n fontSize: 14,\n fontWeight: '500',\n textAlign: 'center',\n },\n})\n\nexport default CameraCaptureExAdvanced "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureExScan.d.ts","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureExScan.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,mBAAmB,mCAgQxB,CAAA;AA0ED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { StyleSheet, View, Dimensions, Text, Animated } from "react-native";
|
|
2
|
+
import { EnhancedCameraView } from "../EnhancedCameraView";
|
|
3
|
+
import Svg, { Rect, Path, Mask, Defs, LinearGradient, Stop, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
const CameraCaptureExScan = () => {
|
|
6
|
+
const { width: screenWidth, height: screenHeight } = Dimensions.get('window');
|
|
7
|
+
const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]
|
|
8
|
+
const [xMin, yMin, xMax, yMax] = bbox;
|
|
9
|
+
const boxWidth = xMax - xMin;
|
|
10
|
+
const boxHeight = yMax - yMin;
|
|
11
|
+
// Animations
|
|
12
|
+
const instructionAnimation = useRef(new Animated.Value(0)).current;
|
|
13
|
+
const [cornerOpacity, setCornerOpacity] = useState(0.8);
|
|
14
|
+
const [scanLineX, setScanLineX] = useState(0);
|
|
15
|
+
const [scanProgress, setScanProgress] = useState(0);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
// Animation des instructions
|
|
18
|
+
const instructionSequence = Animated.loop(Animated.sequence([
|
|
19
|
+
Animated.timing(instructionAnimation, {
|
|
20
|
+
toValue: 1,
|
|
21
|
+
duration: 600,
|
|
22
|
+
useNativeDriver: false,
|
|
23
|
+
}),
|
|
24
|
+
Animated.timing(instructionAnimation, {
|
|
25
|
+
toValue: 0.95,
|
|
26
|
+
duration: 200,
|
|
27
|
+
useNativeDriver: false,
|
|
28
|
+
}),
|
|
29
|
+
Animated.timing(instructionAnimation, {
|
|
30
|
+
toValue: 1,
|
|
31
|
+
duration: 200,
|
|
32
|
+
useNativeDriver: false,
|
|
33
|
+
}),
|
|
34
|
+
]));
|
|
35
|
+
// Animation des coins
|
|
36
|
+
const cornerInterval = setInterval(() => {
|
|
37
|
+
setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);
|
|
38
|
+
}, 800);
|
|
39
|
+
// Animation de la ligne de scan verticale qui se déplace horizontalement
|
|
40
|
+
const scanLineInterval = setInterval(() => {
|
|
41
|
+
setScanLineX(prev => {
|
|
42
|
+
const newX = prev + 2; // Vitesse de déplacement horizontal
|
|
43
|
+
if (newX > screenWidth) {
|
|
44
|
+
setScanProgress(100);
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
// Calculer le pourcentage de progression
|
|
48
|
+
const progress = (newX / screenWidth) * 100;
|
|
49
|
+
setScanProgress(progress);
|
|
50
|
+
return newX;
|
|
51
|
+
});
|
|
52
|
+
}, 25); // Fréquence de mise à jour
|
|
53
|
+
// Démarrer les animations
|
|
54
|
+
instructionSequence.start();
|
|
55
|
+
return () => {
|
|
56
|
+
instructionSequence.stop();
|
|
57
|
+
clearInterval(cornerInterval);
|
|
58
|
+
clearInterval(scanLineInterval);
|
|
59
|
+
};
|
|
60
|
+
}, [instructionAnimation, screenWidth]);
|
|
61
|
+
return (<EnhancedCameraView showCamera={true} showSwitchCamera={false} bbox={{
|
|
62
|
+
xMin: 150,
|
|
63
|
+
yMin: 210,
|
|
64
|
+
xMax: 350,
|
|
65
|
+
yMax: 410,
|
|
66
|
+
borderColor: "#2DBD60",
|
|
67
|
+
borderWidth: 3,
|
|
68
|
+
cornerRadius: 8
|
|
69
|
+
}} overlayComponent={<View style={StyleSheet.absoluteFill}>
|
|
70
|
+
<Animated.View style={[
|
|
71
|
+
styles.topIntruction,
|
|
72
|
+
{
|
|
73
|
+
opacity: instructionAnimation,
|
|
74
|
+
transform: [{ scale: instructionAnimation }]
|
|
75
|
+
}
|
|
76
|
+
]}>
|
|
77
|
+
<Text style={styles.topIntructionText}>
|
|
78
|
+
💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.
|
|
79
|
+
</Text>
|
|
80
|
+
</Animated.View>
|
|
81
|
+
|
|
82
|
+
<Svg height={screenHeight} width={screenWidth} style={styles.svg}>
|
|
83
|
+
<Defs>
|
|
84
|
+
<Mask id="cameraMask">
|
|
85
|
+
{/* Fond blanc - zone visible */}
|
|
86
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="white"/>
|
|
87
|
+
{/* Zone noire - zone masquée (transparente) */}
|
|
88
|
+
<Rect x={xMin} y={yMin} width={boxWidth} height={boxHeight} fill="black"/>
|
|
89
|
+
</Mask>
|
|
90
|
+
|
|
91
|
+
{/* Gradient pour la ligne de scan */}
|
|
92
|
+
<LinearGradient id="scanGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
93
|
+
<Stop offset="0%" stopColor="#00FF00" stopOpacity="0.3"/>
|
|
94
|
+
<Stop offset="50%" stopColor="#00FF00" stopOpacity="1"/>
|
|
95
|
+
<Stop offset="100%" stopColor="#00FF00" stopOpacity="0.3"/>
|
|
96
|
+
</LinearGradient>
|
|
97
|
+
</Defs>
|
|
98
|
+
|
|
99
|
+
{/* Overlay semi-transparent avec masque */}
|
|
100
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="rgba(0, 0, 0, 0.6)" mask="url(#cameraMask)"/>
|
|
101
|
+
|
|
102
|
+
{/* Coins de la zone de capture - arrondis avec animation */}
|
|
103
|
+
<Path d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
104
|
+
<Path d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
105
|
+
|
|
106
|
+
<Path d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
107
|
+
<Path d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
108
|
+
|
|
109
|
+
<Path d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
110
|
+
<Path d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
111
|
+
|
|
112
|
+
<Path d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
113
|
+
<Path d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
114
|
+
|
|
115
|
+
{/* Ligne de scan verticale avec gradient qui se déplace horizontalement */}
|
|
116
|
+
<Path d={`M ${scanLineX} ${yMin - (boxHeight * 0.1)} L ${scanLineX} ${yMax + (boxHeight * 0.1)}`} stroke="url(#scanGradient)" strokeWidth="4" strokeDasharray="12,6" opacity={0.9}/>
|
|
117
|
+
|
|
118
|
+
{/* Effet de scan - zone éclairée */}
|
|
119
|
+
<Rect x={0} y={yMin} width={scanLineX} height={boxHeight} fill="rgba(0, 255, 0, 0.1)"/>
|
|
120
|
+
|
|
121
|
+
{/* Indicateur de progression */}
|
|
122
|
+
<Rect x={0} y={yMax + 10} width={screenWidth} height="4" fill="rgba(255, 255, 255, 0.3)" rx="2"/>
|
|
123
|
+
<Rect x={0} y={yMax + 10} width={(screenWidth * scanProgress) / 100} height="4" fill="#00FF00" rx="2"/>
|
|
124
|
+
|
|
125
|
+
{/* Texte de progression */}
|
|
126
|
+
<SvgText x={screenWidth / 2} y={yMax + 30} fontSize="12" fill="#00FF00" textAnchor="middle" fontWeight="bold">
|
|
127
|
+
{Math.round(scanProgress)}%
|
|
128
|
+
</SvgText>
|
|
129
|
+
</Svg>
|
|
130
|
+
|
|
131
|
+
<View style={styles.bottomIntruction}>
|
|
132
|
+
<Text style={styles.bottomTitle}>
|
|
133
|
+
Mesurez 100cm de hauteur.
|
|
134
|
+
</Text>
|
|
135
|
+
<Text style={styles.bottomSubtitle}>
|
|
136
|
+
Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.
|
|
137
|
+
</Text>
|
|
138
|
+
</View>
|
|
139
|
+
</View>}/>);
|
|
140
|
+
};
|
|
141
|
+
const styles = StyleSheet.create({
|
|
142
|
+
overlay: {
|
|
143
|
+
position: 'absolute',
|
|
144
|
+
top: 0,
|
|
145
|
+
left: 0,
|
|
146
|
+
width: '100%',
|
|
147
|
+
height: '50%',
|
|
148
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
149
|
+
},
|
|
150
|
+
svg: {
|
|
151
|
+
position: 'absolute',
|
|
152
|
+
top: 0,
|
|
153
|
+
left: 0,
|
|
154
|
+
width: '100%',
|
|
155
|
+
height: '100%',
|
|
156
|
+
},
|
|
157
|
+
topIntruction: {
|
|
158
|
+
zIndex: 1000,
|
|
159
|
+
flexDirection: 'row',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
justifyContent: 'center',
|
|
162
|
+
paddingVertical: 20,
|
|
163
|
+
paddingHorizontal: 10,
|
|
164
|
+
marginHorizontal: 20,
|
|
165
|
+
marginTop: 10,
|
|
166
|
+
backgroundColor: "#FDE04730",
|
|
167
|
+
borderColor: "#FDE047",
|
|
168
|
+
borderWidth: 1,
|
|
169
|
+
borderRadius: 10,
|
|
170
|
+
gap: 10,
|
|
171
|
+
},
|
|
172
|
+
topIntructionText: {
|
|
173
|
+
color: '#FDE047',
|
|
174
|
+
fontSize: 14,
|
|
175
|
+
fontWeight: 'bold',
|
|
176
|
+
textAlign: 'center',
|
|
177
|
+
},
|
|
178
|
+
bottomIntruction: {
|
|
179
|
+
position: 'absolute',
|
|
180
|
+
bottom: 0,
|
|
181
|
+
left: 0,
|
|
182
|
+
width: '100%',
|
|
183
|
+
height: '35%',
|
|
184
|
+
paddingHorizontal: 20,
|
|
185
|
+
},
|
|
186
|
+
bottomIntructionTextBold: {
|
|
187
|
+
color: 'white',
|
|
188
|
+
fontSize: 16,
|
|
189
|
+
fontWeight: 'bold',
|
|
190
|
+
textAlign: 'center',
|
|
191
|
+
},
|
|
192
|
+
bottomIntructionText: {
|
|
193
|
+
color: 'white',
|
|
194
|
+
fontSize: 14,
|
|
195
|
+
fontWeight: 'bold',
|
|
196
|
+
textAlign: 'center',
|
|
197
|
+
},
|
|
198
|
+
bottomTitle: {
|
|
199
|
+
color: 'white',
|
|
200
|
+
fontSize: 25,
|
|
201
|
+
fontWeight: 'bold',
|
|
202
|
+
textAlign: 'center',
|
|
203
|
+
},
|
|
204
|
+
bottomSubtitle: {
|
|
205
|
+
color: 'white',
|
|
206
|
+
marginTop: 15,
|
|
207
|
+
fontSize: 14,
|
|
208
|
+
fontWeight: '500',
|
|
209
|
+
textAlign: 'center',
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
export default CameraCaptureExScan;
|
|
213
|
+
//# sourceMappingURL=CameraCaptureExScan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureExScan.js","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureExScan.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE9E,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,2BAA2B;IAC7D,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;IACtC,MAAM,QAAQ,GAAG,I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QACd,YAAY,EAAE,EAAE;QAChB,GAAG,EAAE,EAAE;KACV;IACD,iBAAiB,EAAE;QACf,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,gBAAgB,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,KAAK;QACb,iBAAiB,EAAE,EAAE;KACxB;IACD,wBAAwB,EAAE;QACtB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,oBAAoB,EAAE;QAClB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,WAAW,EAAE;QACT,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACtB;CACJ,CAAC,CAAA;AAEF,eAAe,mBAAmB,CAAA","sourcesContent":["import { StyleSheet, View, Dimensions, Text, Animated } from \"react-native\"\nimport { EnhancedCameraView } from \"../EnhancedCameraView\"\nimport Svg, { Rect, Path, Mask, Defs, LinearGradient, Stop, Text as SvgText } from 'react-native-svg';\nimport { useEffect, useRef, useState } from 'react';\n\nconst CameraCaptureExScan = () => {\n const { width: screenWidth, height: screenHeight } = Dimensions.get('window');\n\n const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]\n const [xMin, yMin, xMax, yMax] = bbox;\n const boxWidth = xMax - xMin;\n const boxHeight = yMax - yMin;\n\n // Animations\n const instructionAnimation = useRef(new Animated.Value(0)).current;\n const [cornerOpacity, setCornerOpacity] = useState(0.8);\n const [scanLineX, setScanLineX] = useState(0);\n const [scanProgress, setScanProgress] = useState(0);\n\n useEffect(() => {\n // Animation des instructions\n const instructionSequence = Animated.loop(\n Animated.sequence([\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 600,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 0.95,\n duration: 200,\n useNativeDriver: false,\n }),\n Animated.timing(instructionAnimation, {\n toValue: 1,\n duration: 200,\n useNativeDriver: false,\n }),\n ])\n );\n\n // Animation des coins\n const cornerInterval = setInterval(() => {\n setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);\n }, 800);\n\n // Animation de la ligne de scan verticale qui se déplace horizontalement\n const scanLineInterval = setInterval(() => {\n setScanLineX(prev => {\n const newX = prev + 2; // Vitesse de déplacement horizontal\n if (newX > screenWidth) {\n setScanProgress(100);\n return 0;\n }\n // Calculer le pourcentage de progression\n const progress = (newX / screenWidth) * 100;\n setScanProgress(progress);\n return newX;\n });\n }, 25); // Fréquence de mise à jour\n\n // Démarrer les animations\n instructionSequence.start();\n\n return () => {\n instructionSequence.stop();\n clearInterval(cornerInterval);\n clearInterval(scanLineInterval);\n };\n }, [instructionAnimation, screenWidth]);\n\n return (\n <EnhancedCameraView\n showCamera={true}\n showSwitchCamera={false}\n bbox={{\n xMin: 150,\n yMin: 210,\n xMax: 350,\n yMax: 410,\n borderColor: \"#2DBD60\",\n borderWidth: 3,\n cornerRadius: 8\n }}\n overlayComponent={\n <View style={StyleSheet.absoluteFill}>\n <Animated.View \n style={[\n styles.topIntruction,\n {\n opacity: instructionAnimation,\n transform: [{ scale: instructionAnimation }]\n }\n ]}\n >\n <Text style={styles.topIntructionText}>\n 💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.\n </Text>\n </Animated.View>\n \n <Svg\n height={screenHeight}\n width={screenWidth}\n style={styles.svg}\n >\n <Defs>\n <Mask id=\"cameraMask\">\n {/* Fond blanc - zone visible */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"white\"\n />\n {/* Zone noire - zone masquée (transparente) */}\n <Rect\n x={xMin}\n y={yMin}\n width={boxWidth}\n height={boxHeight}\n fill=\"black\"\n />\n </Mask>\n \n {/* Gradient pour la ligne de scan */}\n <LinearGradient id=\"scanGradient\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n <Stop offset=\"0%\" stopColor=\"#00FF00\" stopOpacity=\"0.3\" />\n <Stop offset=\"50%\" stopColor=\"#00FF00\" stopOpacity=\"1\" />\n <Stop offset=\"100%\" stopColor=\"#00FF00\" stopOpacity=\"0.3\" />\n </LinearGradient>\n </Defs>\n\n {/* Overlay semi-transparent avec masque */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"rgba(0, 0, 0, 0.6)\"\n mask=\"url(#cameraMask)\"\n />\n\n {/* Coins de la zone de capture - arrondis avec animation */}\n <Path\n d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n {/* Ligne de scan verticale avec gradient qui se déplace horizontalement */}\n <Path\n d={`M ${scanLineX} ${yMin - (boxHeight * 0.1)} L ${scanLineX} ${yMax + (boxHeight * 0.1)}`}\n stroke=\"url(#scanGradient)\"\n strokeWidth=\"4\"\n strokeDasharray=\"12,6\"\n opacity={0.9}\n />\n\n {/* Effet de scan - zone éclairée */}\n <Rect\n x={0}\n y={yMin}\n width={scanLineX}\n height={boxHeight}\n fill=\"rgba(0, 255, 0, 0.1)\"\n />\n\n {/* Indicateur de progression */}\n <Rect\n x={0}\n y={yMax + 10}\n width={screenWidth}\n height=\"4\"\n fill=\"rgba(255, 255, 255, 0.3)\"\n rx=\"2\"\n />\n <Rect\n x={0}\n y={yMax + 10}\n width={(screenWidth * scanProgress) / 100}\n height=\"4\"\n fill=\"#00FF00\"\n rx=\"2\"\n />\n\n {/* Texte de progression */}\n <SvgText\n x={screenWidth / 2}\n y={yMax + 30}\n fontSize=\"12\"\n fill=\"#00FF00\"\n textAnchor=\"middle\"\n fontWeight=\"bold\"\n >\n {Math.round(scanProgress)}%\n </SvgText>\n </Svg>\n \n <View style={styles.bottomIntruction}>\n <Text style={styles.bottomTitle}>\n Mesurez 100cm de hauteur.\n </Text>\n <Text style={styles.bottomSubtitle}>\n Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.\n </Text>\n </View>\n </View>\n }\n />\n )\n}\n\nconst styles = StyleSheet.create({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '50%',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n topIntruction: {\n zIndex: 1000,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 20,\n paddingHorizontal: 10,\n marginHorizontal: 20,\n marginTop: 10,\n backgroundColor: \"#FDE04730\",\n borderColor: \"#FDE047\",\n borderWidth: 1,\n borderRadius: 10,\n gap: 10,\n },\n topIntructionText: {\n color: '#FDE047',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntruction: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: '35%',\n paddingHorizontal: 20,\n },\n bottomIntructionTextBold: {\n color: 'white',\n fontSize: 16,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntructionText: {\n color: 'white',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomTitle: {\n color: 'white',\n fontSize: 25,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomSubtitle: {\n color: 'white',\n marginTop: 15,\n fontSize: 14,\n fontWeight: '500',\n textAlign: 'center',\n },\n})\n\nexport default CameraCaptureExScan "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraCaptureExSimple.d.ts","sourceRoot":"","sources":["../../../src/components/example/CameraCaptureExSimple.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,qBAAqB,mCA0J1B,CAAA;AAwDD,eAAe,qBAAqB,CAAC"}
|