react-native-plaid-link-sdk 12.6.0 → 12.7.0
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 +2 -0
- package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/results.bin +1 -0
- package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/results.bin +1 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultHandler.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultManager.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/BuildConfig.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/GlobalFunctionsKt.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleAndroidSpec.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleiOSSpec.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedView.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager$Companion.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule$Companion.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$1.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$2.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/PlaidJsonConverter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNAccountAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNEventMetadataAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNLinkInstitutionAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/plaid/BuildConfig.java +12 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.java +35 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.java +19 -0
- package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +64 -0
- package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +63 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.cpp +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.h +29 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.cpp +52 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.h +34 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.h +32 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.h +20 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI-generated.cpp +149 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI.h +233 -0
- package/android/build/generated/source/codegen/jni/rnplaidlink-generated.cpp +116 -0
- package/android/build/generated/source/codegen/jni/rnplaidlink.h +39 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +13 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -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/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -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 +2 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/layout_plk_embedded_view.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/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/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/java_res/debug/processDebugJavaRes/out/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultHandler.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +4 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +17 -0
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-plaid-link-sdk.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +13 -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/layout/plk_embedded_view.xml +5 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultHandler.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/GlobalFunctionsKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/PlaidJsonConverter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNAccountAdapter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNLinkInstitutionAdapter.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 +3 -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/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.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/package-parts.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.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/aar/react-native-plaid-link-sdk-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/GlobalFunctionsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/PlaidJsonConverter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNAccountAdapter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/plaid/PlaidModule.kt +12 -3
- package/android/src/main/java/com/plaid/gson/RNEventMetadataAdapter.kt +2 -0
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +1 -1
- package/dist/PlaidLink.js +4 -3
- package/dist/Types.d.ts +1 -1
- package/dist/Types.js +4 -8
- package/dist/exampleRN76/App.d.ts +3 -0
- package/dist/exampleRN76/App.js +129 -0
- package/dist/exampleRN76/Styles.d.ts +63 -0
- package/dist/exampleRN76/Styles.js +47 -0
- package/dist/exampleRN76/__tests__/App.test.d.ts +4 -0
- package/dist/exampleRN76/__tests__/App.test.js +13 -0
- package/dist/exampleRN76/babel.config.d.ts +1 -0
- package/dist/exampleRN76/babel.config.js +4 -0
- package/dist/exampleRN76/index.d.ts +1 -0
- package/dist/exampleRN76/index.js +7 -0
- package/dist/exampleRN76/jest.config.d.ts +1 -0
- package/dist/exampleRN76/jest.config.js +4 -0
- package/dist/exampleRN76/metro.config.d.ts +2 -0
- package/dist/exampleRN76/metro.config.js +10 -0
- package/dist/exampleReactNative76/App.d.ts +2 -0
- package/dist/exampleReactNative76/App.js +134 -0
- package/dist/exampleReactNative76/Styles.d.ts +69 -0
- package/dist/exampleReactNative76/Styles.js +51 -0
- package/dist/exampleReactNative76/__tests__/App.test.d.ts +4 -0
- package/dist/exampleReactNative76/__tests__/App.test.js +13 -0
- package/dist/exampleReactNative76/babel.config.d.ts +1 -0
- package/dist/exampleReactNative76/babel.config.js +4 -0
- package/dist/exampleReactNative76/index.d.ts +1 -0
- package/dist/exampleReactNative76/index.js +7 -0
- package/dist/exampleReactNative76/jest.config.d.ts +1 -0
- package/dist/exampleReactNative76/jest.config.js +4 -0
- package/dist/exampleReactNative76/metro.config.d.ts +2 -0
- package/dist/exampleReactNative76/metro.config.js +10 -0
- package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -2
- package/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +1 -1
- package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +1 -1
- package/dist/src/EmbeddedLink/EmbeddedLinkView.d.ts +13 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.js +55 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.d.ts +1 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.js +1 -0
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.d.ts +2 -0
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.js +2 -0
- package/dist/src/PlaidLink.d.ts +27 -0
- package/dist/src/PlaidLink.js +124 -0
- package/dist/src/Types.d.ts +540 -0
- package/dist/src/Types.js +454 -0
- package/dist/src/__tests__/Types.tests.d.ts +1 -0
- package/dist/src/__tests__/Types.tests.js +14 -0
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +17 -0
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.js +2 -0
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.d.ts +14 -0
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.js +4 -0
- package/dist/src/fabric/NativePlaidLinkModuleiOS.d.ts +15 -0
- package/dist/src/fabric/NativePlaidLinkModuleiOS.js +4 -0
- package/dist/src/fabric/fabricUtils.d.ts +1 -0
- package/dist/src/fabric/fabricUtils.js +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +6 -0
- package/ios/RNLinksdk.mm +15 -3
- package/ios/RNPlaidHelper.h +1 -0
- package/ios/RNPlaidHelper.m +3 -1
- package/package.json +1 -1
- package/react-native-plaid-link-sdk.podspec +1 -1
- package/src/PlaidLink.tsx +3 -1
- package/src/Types.ts +2 -0
- package/src/fabric/NativePlaidLinkModuleAndroid.ts +1 -1
- package/src/fabric/NativePlaidLinkModuleiOS.ts +1 -1
- package/android/.gradle/config.properties +0 -2
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/caches/deviceStreaming.xml +0 -835
- package/android/.idea/gradle.xml +0 -13
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/runConfigurations.xml +0 -17
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
package/dist/PlaidLink.js
CHANGED
|
@@ -31,14 +31,15 @@ export const usePlaidEmitter = (linkEventListener) => {
|
|
|
31
31
|
}, []);
|
|
32
32
|
};
|
|
33
33
|
export const create = (props) => {
|
|
34
|
-
var _a, _b;
|
|
34
|
+
var _a, _b, _c, _d;
|
|
35
35
|
let token = props.token;
|
|
36
36
|
let noLoadingState = (_a = props.noLoadingState) !== null && _a !== void 0 ? _a : false;
|
|
37
37
|
if (Platform.OS === 'android') {
|
|
38
|
-
RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.createPlaidLink(token, noLoadingState, (_b = props.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR);
|
|
38
|
+
RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.createPlaidLink(token, noLoadingState, (_b = props.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR, (_c = props.onLoad) !== null && _c !== void 0 ? _c : (() => { }));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
|
|
41
|
+
const onLoad = (_d = props.onLoad) !== null && _d !== void 0 ? _d : (() => { });
|
|
42
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.createPlaidLink(token, noLoadingState, onLoad);
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
export const open = (props) => {
|
package/dist/Types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface CommonPlaidLinkOptions {
|
|
3
2
|
logLevel?: LinkLogLevel;
|
|
4
3
|
extras?: Record<string, any>;
|
|
@@ -6,6 +5,7 @@ interface CommonPlaidLinkOptions {
|
|
|
6
5
|
export type LinkTokenConfiguration = (CommonPlaidLinkOptions & {
|
|
7
6
|
token: string;
|
|
8
7
|
noLoadingState?: boolean;
|
|
8
|
+
onLoad?: () => void;
|
|
9
9
|
});
|
|
10
10
|
export declare enum LinkLogLevel {
|
|
11
11
|
DEBUG = "debug",
|
package/dist/Types.js
CHANGED
|
@@ -100,7 +100,7 @@ export var LinkAccountSubtypes;
|
|
|
100
100
|
LinkAccountSubtypes["UTMA"] = "utma";
|
|
101
101
|
LinkAccountSubtypes["VARIABLE_ANNUITY"] = "variable annuity";
|
|
102
102
|
})(LinkAccountSubtypes || (LinkAccountSubtypes = {}));
|
|
103
|
-
class LinkAccountSubtypeCredit {
|
|
103
|
+
export class LinkAccountSubtypeCredit {
|
|
104
104
|
constructor(type, subtype) {
|
|
105
105
|
this.type = type;
|
|
106
106
|
this.subtype = subtype;
|
|
@@ -109,8 +109,7 @@ class LinkAccountSubtypeCredit {
|
|
|
109
109
|
LinkAccountSubtypeCredit.ALL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL);
|
|
110
110
|
LinkAccountSubtypeCredit.CREDIT_CARD = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.CREDIT_CARD);
|
|
111
111
|
LinkAccountSubtypeCredit.PAYPAL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.PAYPAL);
|
|
112
|
-
export
|
|
113
|
-
class LinkAccountSubtypeDepository {
|
|
112
|
+
export class LinkAccountSubtypeDepository {
|
|
114
113
|
constructor(type, subtype) {
|
|
115
114
|
this.type = type;
|
|
116
115
|
this.subtype = subtype;
|
|
@@ -126,8 +125,7 @@ LinkAccountSubtypeDepository.MONEY_MARKET = new LinkAccountSubtypeDepository(Lin
|
|
|
126
125
|
LinkAccountSubtypeDepository.PAYPAL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PAYPAL);
|
|
127
126
|
LinkAccountSubtypeDepository.PREPAID = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PREPAID);
|
|
128
127
|
LinkAccountSubtypeDepository.SAVINGS = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.SAVINGS);
|
|
129
|
-
export
|
|
130
|
-
class LinkAccountSubtypeInvestment {
|
|
128
|
+
export class LinkAccountSubtypeInvestment {
|
|
131
129
|
constructor(type, subtype) {
|
|
132
130
|
this.type = type;
|
|
133
131
|
this.subtype = subtype;
|
|
@@ -178,8 +176,7 @@ LinkAccountSubtypeInvestment.TRUST = new LinkAccountSubtypeInvestment(LinkAccoun
|
|
|
178
176
|
LinkAccountSubtypeInvestment.UGMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UGMA);
|
|
179
177
|
LinkAccountSubtypeInvestment.UTMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UTMA);
|
|
180
178
|
LinkAccountSubtypeInvestment.VARIABLE_ANNUITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.VARIABLE_ANNUITY);
|
|
181
|
-
export
|
|
182
|
-
class LinkAccountSubtypeLoan {
|
|
179
|
+
export class LinkAccountSubtypeLoan {
|
|
183
180
|
constructor(type, subtype) {
|
|
184
181
|
this.type = type;
|
|
185
182
|
this.subtype = subtype;
|
|
@@ -197,7 +194,6 @@ LinkAccountSubtypeLoan.LOAN = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT,
|
|
|
197
194
|
LinkAccountSubtypeLoan.MORTGAGE = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.MORTGAGE);
|
|
198
195
|
LinkAccountSubtypeLoan.OVERDRAFT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.OVERDRAFT);
|
|
199
196
|
LinkAccountSubtypeLoan.STUDENT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.STUDENT);
|
|
200
|
-
export { LinkAccountSubtypeLoan };
|
|
201
197
|
export class LinkAccountSubtypeUnknown {
|
|
202
198
|
constructor(type, subtype) {
|
|
203
199
|
this.type = type;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Platform, TextInput, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import { styles } from './Styles'; // Adjust import if needed for the actual path
|
|
4
|
+
import { LinkLogLevel, dismissLink, usePlaidEmitter, LinkIOSPresentationStyle, create, open, syncFinanceKit, submit, EmbeddedLinkView, // Make sure this is imported
|
|
5
|
+
} from 'react-native-plaid-link-sdk';
|
|
6
|
+
// EmbeddedLinkView for displaying once a token is entered
|
|
7
|
+
const EmbeddedView = ({ token }) => {
|
|
8
|
+
let content;
|
|
9
|
+
if (token) {
|
|
10
|
+
content = (<View>
|
|
11
|
+
<EmbeddedLinkView token={token} iOSPresentationStyle={LinkIOSPresentationStyle.MODAL} onEvent={(event) => {
|
|
12
|
+
console.log('onEvent', event);
|
|
13
|
+
}} onSuccess={(success) => {
|
|
14
|
+
console.log('onSuccess', success);
|
|
15
|
+
}} onExit={(exit) => {
|
|
16
|
+
console.log('onExit', exit);
|
|
17
|
+
}} style={styles.embedded}/>
|
|
18
|
+
</View>);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
content = (<Text style={{ fontSize: 24, color: '#2196F3', textAlign: 'center' }}>
|
|
22
|
+
Enter Link Token
|
|
23
|
+
</Text>);
|
|
24
|
+
}
|
|
25
|
+
return <View style={{ padding: 24 }}>{content}</View>;
|
|
26
|
+
};
|
|
27
|
+
function isValidString(str) {
|
|
28
|
+
return str.trim() !== '';
|
|
29
|
+
}
|
|
30
|
+
function createLinkTokenConfiguration(token, noLoadingState = false) {
|
|
31
|
+
console.log(`token: ${token}`);
|
|
32
|
+
return {
|
|
33
|
+
token: token,
|
|
34
|
+
noLoadingState: noLoadingState,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function createSubmissionData(phoneNumber) {
|
|
38
|
+
return {
|
|
39
|
+
phoneNumber: phoneNumber,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function createLinkOpenProps() {
|
|
43
|
+
return {
|
|
44
|
+
onSuccess: (success) => {
|
|
45
|
+
console.log('Success: ', success);
|
|
46
|
+
success.metadata.accounts.forEach(it => console.log('accounts', it));
|
|
47
|
+
},
|
|
48
|
+
onExit: (linkExit) => {
|
|
49
|
+
console.log('Exit: ', linkExit);
|
|
50
|
+
dismissLink();
|
|
51
|
+
},
|
|
52
|
+
iOSPresentationStyle: LinkIOSPresentationStyle.MODAL,
|
|
53
|
+
logLevel: LinkLogLevel.ERROR,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const PlaidLinkScreen = () => {
|
|
57
|
+
// Use event emitter to get real-time events during a Link Session.
|
|
58
|
+
usePlaidEmitter((event) => {
|
|
59
|
+
console.log(event);
|
|
60
|
+
});
|
|
61
|
+
const [text, onChangeText] = React.useState('');
|
|
62
|
+
const [disabled, setDisabled] = React.useState(true);
|
|
63
|
+
const iOSVersionParts = String(Platform.Version).split('.');
|
|
64
|
+
const [majorVersion, minorVersion] = iOSVersionParts.length >= 2 ? iOSVersionParts : [null, null];
|
|
65
|
+
const financeKitText = () => {
|
|
66
|
+
if (majorVersion && minorVersion) {
|
|
67
|
+
const majorInt = parseInt(majorVersion, 10);
|
|
68
|
+
const minorInt = parseInt(minorVersion, 10);
|
|
69
|
+
if (majorInt > 17) {
|
|
70
|
+
return <Text style={styles.button}>Sync FinanceKit</Text>;
|
|
71
|
+
}
|
|
72
|
+
else if (majorInt === 17 && minorInt >= 4) {
|
|
73
|
+
return <Text style={styles.button}>Sync FinanceKit</Text>;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return (<Text style={styles.button}>
|
|
77
|
+
FinanceKit not supported on this version of iOS
|
|
78
|
+
</Text>);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return <Text style={styles.button}>Invalid iOS version</Text>;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return (<View style={{ padding: 24 }}>
|
|
86
|
+
<View style={{ height: 48, backgroundColor: 'white' }}/> {/* White view with 48px height */}
|
|
87
|
+
<TextInput style={styles.input} onChangeText={onChangeText} value={text} placeholder="link-sandbox-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" placeholderTextColor={'#D3D3D3'}/>
|
|
88
|
+
<TouchableOpacity style={styles.button} onPress={() => {
|
|
89
|
+
if (isValidString(text)) {
|
|
90
|
+
const tokenConfiguration = createLinkTokenConfiguration(text);
|
|
91
|
+
create(tokenConfiguration);
|
|
92
|
+
setDisabled(false);
|
|
93
|
+
}
|
|
94
|
+
}}>
|
|
95
|
+
<Text style={styles.button}>Create Link</Text>
|
|
96
|
+
</TouchableOpacity>
|
|
97
|
+
<TouchableOpacity disabled={disabled} style={disabled ? styles.disabledButton : styles.button} onPress={() => {
|
|
98
|
+
const submissionData = createSubmissionData('415-555-0015');
|
|
99
|
+
submit(submissionData);
|
|
100
|
+
}}>
|
|
101
|
+
<Text style={styles.button}>Submit Layer Phone Number</Text>
|
|
102
|
+
</TouchableOpacity>
|
|
103
|
+
<TouchableOpacity disabled={disabled} style={disabled ? styles.disabledButton : styles.button} onPress={() => {
|
|
104
|
+
const openProps = createLinkOpenProps();
|
|
105
|
+
open(openProps);
|
|
106
|
+
setDisabled(true);
|
|
107
|
+
}}>
|
|
108
|
+
<Text style={styles.button}>Open Link</Text>
|
|
109
|
+
</TouchableOpacity>
|
|
110
|
+
<TouchableOpacity style={styles.button} onPress={() => {
|
|
111
|
+
const completionHandler = (error) => {
|
|
112
|
+
if (error) {
|
|
113
|
+
console.error('Error:', error);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
console.log('Sync completed successfully');
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const requestAuthorizationIfNeeded = true;
|
|
120
|
+
syncFinanceKit(text, requestAuthorizationIfNeeded, completionHandler);
|
|
121
|
+
}}>
|
|
122
|
+
{financeKitText()}
|
|
123
|
+
</TouchableOpacity>
|
|
124
|
+
|
|
125
|
+
{/* Embedded Link View below the buttons */}
|
|
126
|
+
<EmbeddedView token={text}/>
|
|
127
|
+
</View>);
|
|
128
|
+
};
|
|
129
|
+
export default PlaidLinkScreen;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export namespace styles {
|
|
2
|
+
namespace button {
|
|
3
|
+
let elevation: number;
|
|
4
|
+
let backgroundColor: string;
|
|
5
|
+
let width: "90%";
|
|
6
|
+
let margin: number;
|
|
7
|
+
let paddingVertical: number;
|
|
8
|
+
let fontSize: number;
|
|
9
|
+
let textAlign: "center";
|
|
10
|
+
let color: string;
|
|
11
|
+
let borderRadius: number;
|
|
12
|
+
let alignSelf: "center";
|
|
13
|
+
let textTransform: "uppercase";
|
|
14
|
+
let overflow: "hidden";
|
|
15
|
+
}
|
|
16
|
+
namespace disabledButton {
|
|
17
|
+
let elevation_1: number;
|
|
18
|
+
export { elevation_1 as elevation };
|
|
19
|
+
let backgroundColor_1: string;
|
|
20
|
+
export { backgroundColor_1 as backgroundColor };
|
|
21
|
+
let width_1: "90%";
|
|
22
|
+
export { width_1 as width };
|
|
23
|
+
let margin_1: number;
|
|
24
|
+
export { margin_1 as margin };
|
|
25
|
+
let paddingVertical_1: number;
|
|
26
|
+
export { paddingVertical_1 as paddingVertical };
|
|
27
|
+
let fontSize_1: number;
|
|
28
|
+
export { fontSize_1 as fontSize };
|
|
29
|
+
let textAlign_1: "center";
|
|
30
|
+
export { textAlign_1 as textAlign };
|
|
31
|
+
let color_1: string;
|
|
32
|
+
export { color_1 as color };
|
|
33
|
+
let borderRadius_1: number;
|
|
34
|
+
export { borderRadius_1 as borderRadius };
|
|
35
|
+
let alignSelf_1: "center";
|
|
36
|
+
export { alignSelf_1 as alignSelf };
|
|
37
|
+
let textTransform_1: "uppercase";
|
|
38
|
+
export { textTransform_1 as textTransform };
|
|
39
|
+
let overflow_1: "hidden";
|
|
40
|
+
export { overflow_1 as overflow };
|
|
41
|
+
export let opacity: number;
|
|
42
|
+
}
|
|
43
|
+
namespace input {
|
|
44
|
+
export let height: number;
|
|
45
|
+
let margin_2: number;
|
|
46
|
+
export { margin_2 as margin };
|
|
47
|
+
let width_2: "90%";
|
|
48
|
+
export { width_2 as width };
|
|
49
|
+
let alignSelf_2: "center";
|
|
50
|
+
export { alignSelf_2 as alignSelf };
|
|
51
|
+
export let borderWidth: number;
|
|
52
|
+
export let padding: number;
|
|
53
|
+
export let borderColor: any;
|
|
54
|
+
}
|
|
55
|
+
namespace embedded {
|
|
56
|
+
let width_3: "95%";
|
|
57
|
+
export { width_3 as width };
|
|
58
|
+
let alignSelf_3: "center";
|
|
59
|
+
export { alignSelf_3 as alignSelf };
|
|
60
|
+
let height_1: number;
|
|
61
|
+
export { height_1 as height };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
3
|
+
export const styles = StyleSheet.create({
|
|
4
|
+
button: {
|
|
5
|
+
elevation: 8,
|
|
6
|
+
backgroundColor: '#2196F3',
|
|
7
|
+
width: '90%',
|
|
8
|
+
margin: 4,
|
|
9
|
+
paddingVertical: 4,
|
|
10
|
+
fontSize: 16,
|
|
11
|
+
textAlign: 'center',
|
|
12
|
+
color: 'white',
|
|
13
|
+
borderRadius: 4,
|
|
14
|
+
alignSelf: 'center',
|
|
15
|
+
textTransform: 'uppercase',
|
|
16
|
+
overflow: 'hidden',
|
|
17
|
+
},
|
|
18
|
+
disabledButton: {
|
|
19
|
+
elevation: 8,
|
|
20
|
+
backgroundColor: '#2196F3',
|
|
21
|
+
width: '90%',
|
|
22
|
+
margin: 4,
|
|
23
|
+
paddingVertical: 4,
|
|
24
|
+
fontSize: 16,
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
color: 'white',
|
|
27
|
+
borderRadius: 4,
|
|
28
|
+
alignSelf: 'center',
|
|
29
|
+
textTransform: 'uppercase',
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
opacity: 0.5,
|
|
32
|
+
},
|
|
33
|
+
input: {
|
|
34
|
+
height: 40,
|
|
35
|
+
margin: 12,
|
|
36
|
+
width: '90%',
|
|
37
|
+
alignSelf: 'center',
|
|
38
|
+
borderWidth: 1,
|
|
39
|
+
padding: 10,
|
|
40
|
+
borderColor: Colors.black,
|
|
41
|
+
},
|
|
42
|
+
embedded: {
|
|
43
|
+
width: '95%',
|
|
44
|
+
alignSelf: 'center',
|
|
45
|
+
height: 360,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @format
|
|
3
|
+
*/
|
|
4
|
+
import 'react-native';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import App from '../App';
|
|
7
|
+
// Note: import explicitly to use the types shipped with jest.
|
|
8
|
+
import { it } from '@jest/globals';
|
|
9
|
+
// Note: test renderer must be required after react-native.
|
|
10
|
+
import renderer from 'react-test-renderer';
|
|
11
|
+
it('renders correctly', () => {
|
|
12
|
+
renderer.create(<App />);
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let presets: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let preset: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
3
|
+
/**
|
|
4
|
+
* Metro configuration
|
|
5
|
+
* https://reactnative.dev/docs/metro
|
|
6
|
+
*
|
|
7
|
+
* @type {import('metro-config').MetroConfig}
|
|
8
|
+
*/
|
|
9
|
+
const config = {};
|
|
10
|
+
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Platform, TextInput, Text, TouchableOpacity, View, ScrollView, } from 'react-native';
|
|
3
|
+
import { styles } from './Styles';
|
|
4
|
+
import { LinkLogLevel, dismissLink, usePlaidEmitter, LinkIOSPresentationStyle, create, open, syncFinanceKit, submit, EmbeddedLinkView, } from 'react-native-plaid-link-sdk';
|
|
5
|
+
function isValidString(str) {
|
|
6
|
+
return str.trim() !== '';
|
|
7
|
+
}
|
|
8
|
+
function createLinkTokenConfiguration(token, noLoadingState = false) {
|
|
9
|
+
console.log(`token: ${token}`);
|
|
10
|
+
return {
|
|
11
|
+
token: token,
|
|
12
|
+
noLoadingState: noLoadingState,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function createSubmissionData(phoneNumber) {
|
|
16
|
+
return {
|
|
17
|
+
phoneNumber: phoneNumber,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function createLinkOpenProps() {
|
|
21
|
+
return {
|
|
22
|
+
onSuccess: (success) => {
|
|
23
|
+
console.log('Success: ', success);
|
|
24
|
+
success.metadata.accounts.forEach(it => console.log('accounts', it));
|
|
25
|
+
},
|
|
26
|
+
onExit: (linkExit) => {
|
|
27
|
+
console.log('Exit: ', linkExit);
|
|
28
|
+
dismissLink();
|
|
29
|
+
},
|
|
30
|
+
iOSPresentationStyle: LinkIOSPresentationStyle.MODAL,
|
|
31
|
+
logLevel: LinkLogLevel.ERROR,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const EmbeddedView = ({ token }) => {
|
|
35
|
+
let content;
|
|
36
|
+
if (token) {
|
|
37
|
+
content = (<View>
|
|
38
|
+
<EmbeddedLinkView token={token} iOSPresentationStyle={LinkIOSPresentationStyle.MODAL} onEvent={(event) => console.log('onEvent', event)} onSuccess={(success) => console.log('onSuccess', success)} onExit={(exit) => console.log('onExit', exit)} style={styles.embedded}/>
|
|
39
|
+
</View>);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
content = (
|
|
43
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
44
|
+
<Text style={{ fontSize: 24, color: '#2196F3', textAlign: 'center' }}>
|
|
45
|
+
Enter Link Token
|
|
46
|
+
</Text>);
|
|
47
|
+
}
|
|
48
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
49
|
+
return <View style={{ padding: 24 }}>{content}</View>;
|
|
50
|
+
};
|
|
51
|
+
export default function App() {
|
|
52
|
+
const [text, setText] = React.useState('');
|
|
53
|
+
const [disabled, setDisabled] = React.useState(true);
|
|
54
|
+
const iOSVersionParts = String(Platform.Version).split('.');
|
|
55
|
+
const [majorVersion, minorVersion] = iOSVersionParts.length >= 2 ? iOSVersionParts : [null, null];
|
|
56
|
+
const financeKitText = () => {
|
|
57
|
+
if (majorVersion && minorVersion) {
|
|
58
|
+
const majorInt = parseInt(majorVersion, 10);
|
|
59
|
+
const minorInt = parseInt(minorVersion, 10);
|
|
60
|
+
if (majorInt > 17 || (majorInt === 17 && minorInt >= 4)) {
|
|
61
|
+
return <Text style={styles.button}>Sync FinanceKit</Text>;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return (<Text style={styles.button}>
|
|
65
|
+
FinanceKit not supported on this version of iOS
|
|
66
|
+
</Text>);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return <Text style={styles.button}>Invalid iOS version</Text>;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
// Use event emitter to get real-time events during a Link Session.
|
|
74
|
+
usePlaidEmitter((event) => {
|
|
75
|
+
console.log(event);
|
|
76
|
+
});
|
|
77
|
+
return (
|
|
78
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
79
|
+
<ScrollView contentContainerStyle={{ padding: 16 }}>
|
|
80
|
+
{/* Input for Link Token */}
|
|
81
|
+
<View style={styles.emptyView}/>
|
|
82
|
+
<TextInput style={styles.input} onChangeText={newText => {
|
|
83
|
+
setText(newText);
|
|
84
|
+
setDisabled(!isValidString(newText));
|
|
85
|
+
}} value={text} placeholder="link-sandbox-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" placeholderTextColor={'#D3D3D3'}/>
|
|
86
|
+
|
|
87
|
+
{/* Embedded Link View */}
|
|
88
|
+
<EmbeddedView token={text}/>
|
|
89
|
+
|
|
90
|
+
{/* Create Link */}
|
|
91
|
+
<TouchableOpacity style={styles.button} onPress={() => {
|
|
92
|
+
if (isValidString(text)) {
|
|
93
|
+
const tokenConfiguration = createLinkTokenConfiguration(text);
|
|
94
|
+
create(tokenConfiguration);
|
|
95
|
+
setDisabled(false);
|
|
96
|
+
}
|
|
97
|
+
}}>
|
|
98
|
+
<Text style={styles.button}>Create Link</Text>
|
|
99
|
+
</TouchableOpacity>
|
|
100
|
+
|
|
101
|
+
{/* Submit Phone Number */}
|
|
102
|
+
<TouchableOpacity disabled={disabled} style={disabled ? styles.disabledButton : styles.button} onPress={() => {
|
|
103
|
+
const submissionData = createSubmissionData('415-555-0015');
|
|
104
|
+
submit(submissionData);
|
|
105
|
+
}}>
|
|
106
|
+
<Text style={styles.button}>Submit Layer Phone Number</Text>
|
|
107
|
+
</TouchableOpacity>
|
|
108
|
+
|
|
109
|
+
{/* Open Link */}
|
|
110
|
+
<TouchableOpacity disabled={disabled} style={disabled ? styles.disabledButton : styles.button} onPress={() => {
|
|
111
|
+
const openProps = createLinkOpenProps();
|
|
112
|
+
open(openProps);
|
|
113
|
+
setDisabled(true);
|
|
114
|
+
}}>
|
|
115
|
+
<Text style={styles.button}>Open Link</Text>
|
|
116
|
+
</TouchableOpacity>
|
|
117
|
+
|
|
118
|
+
{/* Sync FinanceKit */}
|
|
119
|
+
<TouchableOpacity style={styles.button} onPress={() => {
|
|
120
|
+
const completionHandler = (error) => {
|
|
121
|
+
if (error) {
|
|
122
|
+
console.error('Error:', error);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
console.log('Sync completed successfully');
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const requestAuthorizationIfNeeded = true;
|
|
129
|
+
syncFinanceKit(text, requestAuthorizationIfNeeded, completionHandler);
|
|
130
|
+
}}>
|
|
131
|
+
{financeKitText()}
|
|
132
|
+
</TouchableOpacity>
|
|
133
|
+
</ScrollView>);
|
|
134
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export namespace styles {
|
|
2
|
+
namespace button {
|
|
3
|
+
let elevation: number;
|
|
4
|
+
let backgroundColor: string;
|
|
5
|
+
let width: "90%";
|
|
6
|
+
let margin: number;
|
|
7
|
+
let paddingVertical: number;
|
|
8
|
+
let fontSize: number;
|
|
9
|
+
let textAlign: "center";
|
|
10
|
+
let color: string;
|
|
11
|
+
let borderRadius: number;
|
|
12
|
+
let alignSelf: "center";
|
|
13
|
+
let textTransform: "uppercase";
|
|
14
|
+
let overflow: "hidden";
|
|
15
|
+
}
|
|
16
|
+
namespace disabledButton {
|
|
17
|
+
let elevation_1: number;
|
|
18
|
+
export { elevation_1 as elevation };
|
|
19
|
+
let backgroundColor_1: string;
|
|
20
|
+
export { backgroundColor_1 as backgroundColor };
|
|
21
|
+
let width_1: "90%";
|
|
22
|
+
export { width_1 as width };
|
|
23
|
+
let margin_1: number;
|
|
24
|
+
export { margin_1 as margin };
|
|
25
|
+
let paddingVertical_1: number;
|
|
26
|
+
export { paddingVertical_1 as paddingVertical };
|
|
27
|
+
let fontSize_1: number;
|
|
28
|
+
export { fontSize_1 as fontSize };
|
|
29
|
+
let textAlign_1: "center";
|
|
30
|
+
export { textAlign_1 as textAlign };
|
|
31
|
+
let color_1: string;
|
|
32
|
+
export { color_1 as color };
|
|
33
|
+
let borderRadius_1: number;
|
|
34
|
+
export { borderRadius_1 as borderRadius };
|
|
35
|
+
let alignSelf_1: "center";
|
|
36
|
+
export { alignSelf_1 as alignSelf };
|
|
37
|
+
let textTransform_1: "uppercase";
|
|
38
|
+
export { textTransform_1 as textTransform };
|
|
39
|
+
let overflow_1: "hidden";
|
|
40
|
+
export { overflow_1 as overflow };
|
|
41
|
+
export let opacity: number;
|
|
42
|
+
}
|
|
43
|
+
namespace input {
|
|
44
|
+
export let height: number;
|
|
45
|
+
let margin_2: number;
|
|
46
|
+
export { margin_2 as margin };
|
|
47
|
+
let width_2: "90%";
|
|
48
|
+
export { width_2 as width };
|
|
49
|
+
let alignSelf_2: "center";
|
|
50
|
+
export { alignSelf_2 as alignSelf };
|
|
51
|
+
export let borderWidth: number;
|
|
52
|
+
export let padding: number;
|
|
53
|
+
export let borderColor: any;
|
|
54
|
+
}
|
|
55
|
+
namespace embedded {
|
|
56
|
+
let width_3: "95%";
|
|
57
|
+
export { width_3 as width };
|
|
58
|
+
let alignSelf_3: "center";
|
|
59
|
+
export { alignSelf_3 as alignSelf };
|
|
60
|
+
let height_1: number;
|
|
61
|
+
export { height_1 as height };
|
|
62
|
+
}
|
|
63
|
+
namespace emptyView {
|
|
64
|
+
let height_2: number;
|
|
65
|
+
export { height_2 as height };
|
|
66
|
+
let backgroundColor_2: string;
|
|
67
|
+
export { backgroundColor_2 as backgroundColor };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
3
|
+
export const styles = StyleSheet.create({
|
|
4
|
+
button: {
|
|
5
|
+
elevation: 8,
|
|
6
|
+
backgroundColor: '#2196F3',
|
|
7
|
+
width: '90%',
|
|
8
|
+
margin: 4,
|
|
9
|
+
paddingVertical: 4,
|
|
10
|
+
fontSize: 16,
|
|
11
|
+
textAlign: 'center',
|
|
12
|
+
color: 'white',
|
|
13
|
+
borderRadius: 4,
|
|
14
|
+
alignSelf: 'center',
|
|
15
|
+
textTransform: 'uppercase',
|
|
16
|
+
overflow: 'hidden',
|
|
17
|
+
},
|
|
18
|
+
disabledButton: {
|
|
19
|
+
elevation: 8,
|
|
20
|
+
backgroundColor: '#2196F3',
|
|
21
|
+
width: '90%',
|
|
22
|
+
margin: 4,
|
|
23
|
+
paddingVertical: 4,
|
|
24
|
+
fontSize: 16,
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
color: 'white',
|
|
27
|
+
borderRadius: 4,
|
|
28
|
+
alignSelf: 'center',
|
|
29
|
+
textTransform: 'uppercase',
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
opacity: 0.5,
|
|
32
|
+
},
|
|
33
|
+
input: {
|
|
34
|
+
height: 40,
|
|
35
|
+
margin: 12,
|
|
36
|
+
width: '90%',
|
|
37
|
+
alignSelf: 'center',
|
|
38
|
+
borderWidth: 1,
|
|
39
|
+
padding: 10,
|
|
40
|
+
borderColor: Colors.black,
|
|
41
|
+
},
|
|
42
|
+
embedded: {
|
|
43
|
+
width: '95%',
|
|
44
|
+
alignSelf: 'center',
|
|
45
|
+
height: 360,
|
|
46
|
+
},
|
|
47
|
+
emptyView: {
|
|
48
|
+
height: 80,
|
|
49
|
+
backgroundColor: 'transparent', // Transparent background to keep it empty
|
|
50
|
+
},
|
|
51
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @format
|
|
3
|
+
*/
|
|
4
|
+
import 'react-native';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import App from '../App';
|
|
7
|
+
// Note: import explicitly to use the types shipped with jest.
|
|
8
|
+
import { it } from '@jest/globals';
|
|
9
|
+
// Note: test renderer must be required after react-native.
|
|
10
|
+
import renderer from 'react-test-renderer';
|
|
11
|
+
it('renders correctly', () => {
|
|
12
|
+
renderer.create(<App />);
|
|
13
|
+
});
|