react-native-unit-components 1.13.0 → 1.14.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.
Files changed (264) hide show
  1. package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +1 -0
  2. package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -1
  3. package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +2 -0
  4. package/android/src/main/java/com/unitreactnativecomponents/secureView/UNSecureViewManager.kt +19 -0
  5. package/android/src/main/java/com/unitreactnativecomponents/security/UNSecurityHelper.kt +37 -0
  6. package/android/src/main/java/com/unitreactnativecomponents/unSnapshotProtectionManager/UNSnapshotProtectionManager.kt +42 -0
  7. package/ios/UNSecurity/UNSecurityHelper.swift +90 -0
  8. package/ios/UNSecurity/UNSecurityHelperExportModule.m +7 -0
  9. package/ios/UNSharedServicesProvider/UNAppStateService.swift +38 -0
  10. package/ios/UNSharedServicesProvider/UNGlobalSnapshotProtectionService.swift +93 -0
  11. package/ios/UNSharedServicesProvider/UNPresentationService.swift +37 -0
  12. package/ios/UNSharedServicesProvider/UNSharedServicesProviderManager.swift +45 -0
  13. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManager.swift +20 -0
  14. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManagerExportModule.m +5 -0
  15. package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +16 -0
  16. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +22 -21
  17. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  18. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +22 -21
  19. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  20. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +4 -3
  21. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  22. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +19 -20
  23. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  24. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  25. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  26. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  27. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +4 -3
  28. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
  29. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +18 -19
  30. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  31. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +7 -1
  32. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -1
  33. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +19 -20
  34. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  35. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  36. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  37. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  38. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  39. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  40. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  41. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +7 -2
  42. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  43. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js +91 -0
  44. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  45. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +29 -0
  46. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  47. package/lib/commonjs/components/UNWirePaymentComponent/index.js +21 -0
  48. package/lib/commonjs/components/UNWirePaymentComponent/index.js.map +1 -0
  49. package/lib/commonjs/components/index.js +11 -0
  50. package/lib/commonjs/components/index.js.map +1 -1
  51. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -1
  52. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
  53. package/lib/commonjs/hooks/useIsJailbrokeDevice.js +22 -0
  54. package/lib/commonjs/hooks/useIsJailbrokeDevice.js.map +1 -0
  55. package/lib/commonjs/hooks/useSnapshotProtection.js +31 -0
  56. package/lib/commonjs/hooks/useSnapshotProtection.js.map +1 -0
  57. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  58. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  59. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +39 -0
  60. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  61. package/lib/commonjs/nativeComponents/UNBaseView/index.js +14 -0
  62. package/lib/commonjs/nativeComponents/UNBaseView/index.js.map +1 -0
  63. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +26 -0
  64. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  65. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js +39 -0
  66. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  67. package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -1
  68. package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
  69. package/lib/commonjs/types/internal/webComponent.types.js +1 -0
  70. package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
  71. package/lib/commonjs/types/shared/env.types.js +1 -0
  72. package/lib/commonjs/types/shared/env.types.js.map +1 -1
  73. package/lib/commonjs/types/shared/index.js +11 -0
  74. package/lib/commonjs/types/shared/index.js.map +1 -1
  75. package/lib/commonjs/types/shared/payments.types.js +1 -0
  76. package/lib/commonjs/types/shared/payments.types.js.map +1 -1
  77. package/lib/commonjs/types/shared/securitySettings.js +12 -0
  78. package/lib/commonjs/types/shared/securitySettings.js.map +1 -0
  79. package/lib/commonjs/types/shared/wirePayment.types.js +6 -0
  80. package/lib/commonjs/types/shared/wirePayment.types.js.map +1 -0
  81. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +6 -1
  82. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
  83. package/lib/commonjs/unitSdkManager/UnitSdkManager.js +22 -5
  84. package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
  85. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  86. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  87. package/lib/commonjs/utils/onLoadMessages.utils.js +10 -0
  88. package/lib/commonjs/utils/onLoadMessages.utils.js.map +1 -0
  89. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +23 -22
  90. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  91. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +23 -22
  92. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  93. package/lib/module/components/UNAccountComponent/UNAccountComponent.js +4 -3
  94. package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  95. package/lib/module/components/UNActivityComponent/UNActivityComponent.js +20 -21
  96. package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  97. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  98. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  99. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  100. package/lib/module/components/UNCardComponent/UNCardComponent.js +4 -3
  101. package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
  102. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +19 -20
  103. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  104. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +7 -1
  105. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -1
  106. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +20 -21
  107. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  108. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  109. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  110. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  111. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  112. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  113. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  114. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +7 -2
  115. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  116. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js +83 -0
  117. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  118. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +21 -0
  119. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  120. package/lib/module/components/UNWirePaymentComponent/index.js +2 -0
  121. package/lib/module/components/UNWirePaymentComponent/index.js.map +1 -0
  122. package/lib/module/components/index.js +1 -0
  123. package/lib/module/components/index.js.map +1 -1
  124. package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -1
  125. package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
  126. package/lib/module/hooks/useIsJailbrokeDevice.js +14 -0
  127. package/lib/module/hooks/useIsJailbrokeDevice.js.map +1 -0
  128. package/lib/module/hooks/useSnapshotProtection.js +23 -0
  129. package/lib/module/hooks/useSnapshotProtection.js.map +1 -0
  130. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  131. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  132. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +31 -0
  133. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  134. package/lib/module/nativeComponents/UNBaseView/index.js +2 -0
  135. package/lib/module/nativeComponents/UNBaseView/index.js.map +1 -0
  136. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +20 -0
  137. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  138. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js +33 -0
  139. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  140. package/lib/module/networking/common/UNNetworkConstants.js +2 -1
  141. package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
  142. package/lib/module/types/internal/webComponent.types.js +1 -0
  143. package/lib/module/types/internal/webComponent.types.js.map +1 -1
  144. package/lib/module/types/shared/env.types.js +1 -0
  145. package/lib/module/types/shared/env.types.js.map +1 -1
  146. package/lib/module/types/shared/index.js +1 -0
  147. package/lib/module/types/shared/index.js.map +1 -1
  148. package/lib/module/types/shared/payments.types.js +1 -0
  149. package/lib/module/types/shared/payments.types.js.map +1 -1
  150. package/lib/module/types/shared/securitySettings.js +6 -0
  151. package/lib/module/types/shared/securitySettings.js.map +1 -0
  152. package/lib/module/types/shared/wirePayment.types.js +2 -0
  153. package/lib/module/types/shared/wirePayment.types.js.map +1 -0
  154. package/lib/module/unitSdkManager/UnitSdk.constants.js +6 -1
  155. package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
  156. package/lib/module/unitSdkManager/UnitSdkManager.js +22 -5
  157. package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
  158. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  159. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  160. package/lib/module/utils/onLoadMessages.utils.js +4 -0
  161. package/lib/module/utils/onLoadMessages.utils.js.map +1 -0
  162. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
  163. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
  164. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
  165. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -1
  166. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +1 -1
  167. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -1
  168. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -1
  169. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
  170. package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -1
  171. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts.map +1 -1
  172. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
  173. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -1
  174. package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts.map +1 -1
  175. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -1
  176. package/lib/typescript/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.d.ts.map +1 -1
  177. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts +20 -0
  178. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts.map +1 -0
  179. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts +4 -0
  180. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts.map +1 -0
  181. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts +2 -0
  182. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts.map +1 -0
  183. package/lib/typescript/src/components/index.d.ts +1 -0
  184. package/lib/typescript/src/components/index.d.ts.map +1 -1
  185. package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -1
  186. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts +2 -0
  187. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts.map +1 -0
  188. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts +2 -0
  189. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts.map +1 -0
  190. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +1 -1
  191. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
  192. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
  193. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts +11 -0
  194. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -0
  195. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts +2 -0
  196. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts.map +1 -0
  197. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts +6 -0
  198. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts.map +1 -0
  199. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts +12 -0
  200. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts.map +1 -0
  201. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts +1 -0
  202. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -1
  203. package/lib/typescript/src/types/internal/webComponent.types.d.ts +1 -0
  204. package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
  205. package/lib/typescript/src/types/shared/achCredit.types.d.ts +1 -1
  206. package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -1
  207. package/lib/typescript/src/types/shared/env.types.d.ts +2 -1
  208. package/lib/typescript/src/types/shared/env.types.d.ts.map +1 -1
  209. package/lib/typescript/src/types/shared/index.d.ts +1 -0
  210. package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
  211. package/lib/typescript/src/types/shared/payments.types.d.ts +2 -1
  212. package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -1
  213. package/lib/typescript/src/types/shared/securitySettings.d.ts +8 -0
  214. package/lib/typescript/src/types/shared/securitySettings.d.ts.map +1 -0
  215. package/lib/typescript/src/types/shared/wirePayment.types.d.ts +42 -0
  216. package/lib/typescript/src/types/shared/wirePayment.types.d.ts.map +1 -0
  217. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts +2 -0
  218. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -1
  219. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts +5 -1
  220. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -1
  221. package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -1
  222. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts +2 -0
  223. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts.map +1 -0
  224. package/package.json +1 -1
  225. package/react-native-unit-components.podspec +1 -1
  226. package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +11 -16
  227. package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +11 -17
  228. package/src/components/UNAccountComponent/UNAccountComponent.tsx +3 -3
  229. package/src/components/UNActivityComponent/UNActivityComponent.tsx +7 -14
  230. package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +14 -17
  231. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +0 -1
  232. package/src/components/UNCardComponent/UNCardComponent.tsx +3 -3
  233. package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +7 -14
  234. package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.tsx +16 -12
  235. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +6 -14
  236. package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +3 -3
  237. package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +14 -11
  238. package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +3 -3
  239. package/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx +14 -11
  240. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.tsx +109 -0
  241. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts +23 -0
  242. package/src/components/UNWirePaymentComponent/index.ts +1 -0
  243. package/src/components/index.ts +1 -0
  244. package/src/helpers/BottomSheet/BottomSheet.tsx +3 -4
  245. package/src/hooks/useIsJailbrokeDevice.ts +17 -0
  246. package/src/hooks/useSnapshotProtection.ts +25 -0
  247. package/src/messages/webMessages/onLoadMessage.ts +1 -1
  248. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +12 -11
  249. package/src/nativeComponents/UNBaseView/UNBaseView.tsx +50 -0
  250. package/src/nativeComponents/UNBaseView/index.ts +1 -0
  251. package/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.ts +21 -0
  252. package/src/nativeModulesHelpers/UNSecurityHelper.ts +35 -0
  253. package/src/networking/common/UNNetworkConstants.ts +2 -1
  254. package/src/types/internal/webComponent.types.ts +1 -0
  255. package/src/types/shared/achCredit.types.ts +1 -1
  256. package/src/types/shared/env.types.ts +2 -1
  257. package/src/types/shared/index.ts +1 -0
  258. package/src/types/shared/payments.types.ts +1 -0
  259. package/src/types/shared/securitySettings.ts +8 -0
  260. package/src/types/shared/wirePayment.types.ts +43 -0
  261. package/src/unitSdkManager/UnitSdk.constants.ts +6 -0
  262. package/src/unitSdkManager/UnitSdkManager.ts +33 -5
  263. package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +3 -0
  264. package/src/utils/onLoadMessages.utils.ts +3 -0
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.license = package["license"]
12
12
  s.authors = package["author"]
13
13
 
14
- s.platforms = { :ios => "10.0" }
14
+ s.platforms = { :ios => "14.0" }
15
15
  s.source = { :git => "https://github.com/github_account/unit-react-native-components.git", :tag => "#{s.version}" }
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
@@ -3,7 +3,7 @@ import { WebComponent } from '../../webComponent/WebComponent';
3
3
  import type { WebViewMessage } from '../../messages/webMessages';
4
4
  import type { UNOnLoadResponse, UNACHData, UNACHOnLoadData, UNError, UNOnLoadResponseData } from '../../types/shared';
5
5
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
6
- import { Platform, View } from 'react-native';
6
+ import { Platform } from 'react-native';
7
7
  import { getACHCreditParams, getACHCreditScript, injectUnitPlaidResponse } from './UNACHCreditComponent.utils';
8
8
  import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
9
9
  import type { ACHEvent } from '../../messages/webMessages/achCreditMessage';
@@ -21,6 +21,8 @@ import { PresentationMode, WebComponentType } from '../../types/internal/webComp
21
21
  import { withReduxStore } from '../../helpers/store/helpers';
22
22
  import { UNPlaidAccountFilter } from '../../types/shared';
23
23
  import { PlaidMessage } from '../../messages/webMessages/plaidMessages';
24
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
25
+ import { ensureArray } from '../../utils/onLoadMessages.utils';
24
26
 
25
27
  export interface UNACHCreditComponentProps {
26
28
  accountId?: string;
@@ -69,10 +71,11 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
69
71
  }
70
72
 
71
73
  if (RESPONSE_KEYS.account in response && RESPONSE_KEYS.counterpartyAccount in response) {
74
+ const account = response[RESPONSE_KEYS.account].data;
72
75
  // ACHOnLoadResponse;
73
76
  const achOnload: UNOnLoadResponseData<UNACHOnLoadData> = {
74
77
  data: {
75
- [RESPONSE_KEYS.account]: response[RESPONSE_KEYS.account].data,
78
+ [RESPONSE_KEYS.account]: ensureArray(account),
76
79
  [RESPONSE_KEYS.counterpartyAccount]: response[RESPONSE_KEYS.counterpartyAccount].data,
77
80
  },
78
81
  };
@@ -138,8 +141,10 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
138
141
  }
139
142
  };
140
143
 
141
- const renderACHCreditWebView = () => {
142
- return (
144
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
145
+
146
+ return (
147
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
143
148
  <WebComponent
144
149
  ref={webRef}
145
150
  type={WebComponentType.achCreditPayment}
@@ -147,21 +152,11 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
147
152
  params={getACHCreditParams(props)}
148
153
  script={getACHCreditScript(appPackageName)}
149
154
  onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
150
- isScrollable={false}
155
+ isScrollable={true}
151
156
  theme={props.theme}
152
157
  language={props.language}
153
158
  />
154
- );
155
- };
156
-
157
- if (presentationMode === PresentationMode.Inherit) {
158
- return renderACHCreditWebView();
159
- }
160
-
161
- return (
162
- <View style={{ height: height }}>
163
- {renderACHCreditWebView()}
164
- </View>
159
+ </UNBaseView>
165
160
  );
166
161
  };
167
162
 
@@ -3,7 +3,7 @@ import { WebComponent } from '../../webComponent/WebComponent';
3
3
  import type { WebViewMessage } from '../../messages/webMessages';
4
4
  import type { UNOnLoadResponse, UNACHData, UNError, UNOnLoadResponseData, UNACHOnLoadData } from '../../types/shared';
5
5
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
6
- import { Platform, View } from 'react-native';
6
+ import { Platform } from 'react-native';
7
7
  import {
8
8
  PlaidLinkTokenData,
9
9
  PlaidTokenCreatedEvent,
@@ -22,6 +22,8 @@ import { PresentationMode, WebComponentType } from '../../types/internal/webComp
22
22
  import { withReduxStore } from '../../helpers/store/helpers';
23
23
  import { UNPlaidAccountFilter } from '../../types/shared';
24
24
  import { PlaidMessage } from '../../messages/webMessages/plaidMessages';
25
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
26
+ import { ensureArray } from '../../utils/onLoadMessages.utils';
25
27
 
26
28
  export interface UNACHDebitComponentProps {
27
29
  accountId?: string;
@@ -69,10 +71,11 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
69
71
  }
70
72
 
71
73
  if (RESPONSE_KEYS.account in response && RESPONSE_KEYS.counterpartyAccount in response) {
74
+ const account = response[RESPONSE_KEYS.account].data;
72
75
  // ACHOnLoadResponse;
73
76
  const achOnload: UNOnLoadResponseData<UNACHOnLoadData> = {
74
77
  data: {
75
- [RESPONSE_KEYS.account]: response[RESPONSE_KEYS.account].data,
78
+ [RESPONSE_KEYS.account]: ensureArray(account),
76
79
  [RESPONSE_KEYS.counterpartyAccount]: response[RESPONSE_KEYS.counterpartyAccount].data,
77
80
  },
78
81
  };
@@ -138,8 +141,10 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
138
141
  }
139
142
  };
140
143
 
141
- const renderACHDebitWebView = () => {
142
- return (
144
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
145
+
146
+ return (
147
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
143
148
  <WebComponent
144
149
  ref={webRef}
145
150
  type={WebComponentType.achDebitPayment}
@@ -147,22 +152,11 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
147
152
  params={getACHDebitParams(props)}
148
153
  script={getACHDebitScript(appPackageName)}
149
154
  onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
150
- isScrollable={false}
155
+ isScrollable={true}
151
156
  theme={props.theme}
152
157
  language={props.language}
153
158
  />
154
- );
155
- };
156
-
157
- if (presentationMode === PresentationMode.Inherit) {
158
- return renderACHDebitWebView();
159
- }
160
-
161
- return (
162
- <View style={{ height: height }}>
163
- {renderACHDebitWebView()}
164
- </View>
165
-
159
+ </UNBaseView>
166
160
  );
167
161
  };
168
162
 
@@ -1,5 +1,4 @@
1
1
  import React, { useEffect, useImperativeHandle, useRef, useState } from 'react';
2
- import { View } from 'react-native';
3
2
  import type WebView from 'react-native-webview';
4
3
  import { HeightEvent, PageMessage } from '../..//messages/webMessages/pageMessage';
5
4
  import {
@@ -34,6 +33,7 @@ import { useDispatch } from 'react-redux';
34
33
  import { setEvent } from '../../slices/SharedEventsSlice';
35
34
  import { useListenerToEvent } from '../../hooks/useListenerToEvent';
36
35
  import { UNAccountMenuItem, UNCreditAccount } from '../../types/shared';
36
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
37
37
 
38
38
  export interface UNAccountComponentProps {
39
39
  // inputs
@@ -165,7 +165,7 @@ const UNAccountComponent = React.forwardRef<UNAccountRef, UNAccountComponentProp
165
165
  };
166
166
 
167
167
  return (
168
- <View style={{ height, width: '100%' }}>
168
+ <UNBaseView style={{ height, width: '100%' }} onLoadError={ handleUnitOnLoad }>
169
169
  <WebComponent
170
170
  ref={webRef}
171
171
  type={WebComponentType.account}
@@ -177,7 +177,7 @@ const UNAccountComponent = React.forwardRef<UNAccountRef, UNAccountComponentProp
177
177
  onMessage={message => handleMessage(message)}
178
178
  isScrollable={false}
179
179
  />
180
- </View>
180
+ </UNBaseView>
181
181
  );
182
182
  });
183
183
 
@@ -1,5 +1,5 @@
1
1
  import React, { useImperativeHandle, useRef, useState } from 'react';
2
- import { Dimensions, View } from 'react-native';
2
+ import { Dimensions } from 'react-native';
3
3
  import {
4
4
  RequestRefreshEvent,
5
5
  RequestRenderingEvent,
@@ -31,6 +31,7 @@ import { setEvent } from '../../slices/SharedEventsSlice';
31
31
  import { useDispatch } from 'react-redux';
32
32
  import { useListenerToEvent } from '../../hooks/useListenerToEvent';
33
33
  import type { UNActivityComponentPaginationType } from '../../types/shared';
34
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
34
35
 
35
36
  const DEFAULT_HEIGHT = Dimensions.get('window').height * 0.5;
36
37
 
@@ -140,8 +141,10 @@ const UNActivityComponent = React.forwardRef<UNActivityRef, UNActivityComponentP
140
141
  }
141
142
  };
142
143
 
143
- const renderActivityWebView = () => {
144
- return (
144
+ const style = defaultHeight ? { height: defaultHeight } : { flex: 1 };
145
+
146
+ return (
147
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
145
148
  <WebComponent
146
149
  ref={webRef}
147
150
  type={WebComponentType.activity}
@@ -153,17 +156,7 @@ const UNActivityComponent = React.forwardRef<UNActivityRef, UNActivityComponentP
153
156
  language={props.language}
154
157
  script={getActivityScript()}
155
158
  />
156
- );
157
- };
158
-
159
- if (!defaultHeight) {
160
- return renderActivityWebView();
161
- }
162
-
163
- return (
164
- <View style={{ height: defaultHeight }}>
165
- {renderActivityWebView()}
166
- </View>
159
+ </UNBaseView>
167
160
  );
168
161
  });
169
162
 
@@ -10,13 +10,14 @@ import type {
10
10
  UNOnLoadResponseData,
11
11
  } from '../../types/shared';
12
12
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
13
- import { View } from 'react-native';
14
13
  import { UnitMessage } from '../../messages/webMessages/unitMessages';
15
14
  import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
16
15
  import type { BookPaymentEvent } from '../../messages/webMessages/bookPaymentMessage';
17
16
  import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
18
17
  import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
19
18
  import { withReduxStore } from '../../helpers/store/helpers';
19
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
20
+ import { ensureArray } from '../../utils/onLoadMessages.utils';
20
21
 
21
22
  export interface UNBookPaymentComponentProps {
22
23
  //inputs
@@ -35,7 +36,7 @@ export interface UNBookPaymentComponentProps {
35
36
 
36
37
  // events
37
38
  onPaymentCreated?: (data: UNBookPaymentData) => void;
38
- onLoad?: (response: UNOnLoadResponse<UNAccountData>) => void;
39
+ onLoad?: (response: UNOnLoadResponse<[UNAccountData]>) => void;
39
40
  onInitialStageBackButtonClicked?: () => void;
40
41
  onFinalStageDoneButtonClicked?: () => void;
41
42
  }
@@ -55,8 +56,12 @@ const UNBookPaymentComponent = (props: UNBookPaymentComponentProps) => {
55
56
  }
56
57
 
57
58
  if (RESPONSE_KEYS.account in response) {
59
+ const account = response[RESPONSE_KEYS.account].data;
58
60
  // AccountOnLoadResponse;
59
- props.onLoad(response[RESPONSE_KEYS.account] as UNOnLoadResponseData<UNAccountData>);
61
+ const paymentOnload: UNOnLoadResponseData<[UNAccountData]> = {
62
+ data: ensureArray(account),
63
+ };
64
+ props.onLoad(paymentOnload);
60
65
  return;
61
66
  }
62
67
 
@@ -93,29 +98,21 @@ const UNBookPaymentComponent = (props: UNBookPaymentComponentProps) => {
93
98
  }
94
99
  };
95
100
 
96
- const renderBookPaymentWebView = () => {
97
- return (
101
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
102
+
103
+ return (
104
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
98
105
  <WebComponent
99
106
  type={WebComponentType.bookPayment}
100
107
  presentationMode={presentationMode}
101
108
  params={getBookPaymentParams(props)}
102
109
  script={getBookPaymentScript()}
103
110
  onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
104
- isScrollable={false}
111
+ isScrollable={true}
105
112
  theme={props.theme}
106
113
  language={props.language}
107
114
  />
108
- );
109
- };
110
-
111
- if (presentationMode === PresentationMode.Inherit) {
112
- return renderBookPaymentWebView();
113
- }
114
-
115
- return (
116
- <View style={{ height: height }}>
117
- {renderBookPaymentWebView()}
118
- </View>
115
+ </UNBaseView>
119
116
  );
120
117
  };
121
118
 
@@ -39,7 +39,6 @@ import { WebComponentType } from '../../types/internal/webComponent.types';
39
39
  import { getNativeComponentDataFromEvent } from './UNBottomSheetComponent.utils';
40
40
 
41
41
  const UNBottomSheetComponent = () => {
42
-
43
42
  const dispatch = useDispatch();
44
43
 
45
44
  const isBottomSheetActive = useSelector((state: RootState) => state.bottomSheet.isBottomSheetActive);
@@ -1,5 +1,4 @@
1
1
  import React, { useImperativeHandle, useRef, useState, useEffect } from 'react';
2
- import { View } from 'react-native';
3
2
  import type WebView from 'react-native-webview';
4
3
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
5
4
  import { RequestRefreshEvent, RequestRenderingEvent, UnitMessage } from '../../messages/webMessages/unitMessages';
@@ -32,6 +31,7 @@ import { withReduxStoreAndRefForwarding } from '../../helpers/store/helpers';
32
31
  import { useListenerToEvent } from '../../hooks/useListenerToEvent';
33
32
  import { setEvent } from '../../slices/SharedEventsSlice';
34
33
  import { UNCardMenuItem } from '../../types/shared';
34
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
35
35
 
36
36
  export interface UNCardComponentProps {
37
37
  // inputs
@@ -169,7 +169,7 @@ const UNCardComponent = React.forwardRef<CardRef, UNCardComponentProps>(function
169
169
  }, []);
170
170
 
171
171
  return (
172
- <View style={{ height, width: '100%', minWidth: 235 }}>
172
+ <UNBaseView style={{ height, width: '100%', minWidth: 235 }} onLoadError={ handleUnitOnLoad }>
173
173
  <WebComponent
174
174
  ref={webRef}
175
175
  type={WebComponentType.card}
@@ -181,7 +181,7 @@ const UNCardComponent = React.forwardRef<CardRef, UNCardComponentProps>(function
181
181
  onMessage={message => handleMessage(message)}
182
182
  isScrollable={false}
183
183
  />
184
- </View>
184
+ </UNBaseView>
185
185
  );
186
186
 
187
187
  });
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { View, NativeModules, Platform } from 'react-native';
2
+ import { NativeModules, Platform } from 'react-native';
3
3
  import { WebComponent } from '../../webComponent/WebComponent';
4
4
  import type { WebViewMessage } from '../../messages/webMessages';
5
5
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
@@ -12,6 +12,7 @@ import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessag
12
12
  import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
13
13
  import { withReduxStore } from '../../helpers/store/helpers';
14
14
  import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
15
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
15
16
 
16
17
  const { Camera } = NativeModules;
17
18
 
@@ -101,8 +102,10 @@ const UNCheckDepositComponent = (props: UNCheckDepositComponentProps) => {
101
102
  }
102
103
  };
103
104
 
104
- const renderBookPaymentWebView = () => {
105
- return (
105
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
106
+
107
+ return (
108
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
106
109
  <WebComponent
107
110
  type={WebComponentType.checkDeposit}
108
111
  presentationMode={presentationMode}
@@ -113,17 +116,7 @@ const UNCheckDepositComponent = (props: UNCheckDepositComponentProps) => {
113
116
  language={props.language}
114
117
  isScrollable={true}
115
118
  />
116
- );
117
- };
118
-
119
- if (presentationMode === PresentationMode.Inherit) {
120
- return renderBookPaymentWebView();
121
- }
122
-
123
- return (
124
- <View style={{ height: height }}>
125
- {renderBookPaymentWebView()}
126
- </View>
119
+ </UNBaseView>
127
120
  );
128
121
  };
129
122
 
@@ -17,6 +17,8 @@ import { SafeAreaView } from 'react-native';
17
17
  import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
18
18
  import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
19
19
  import { FundAccountPaymentEvent } from '../../messages/webMessages/fundAccountPaymentMessage';
20
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
21
+
20
22
  export interface UNFundAccountPaymentComponentProps {
21
23
  // inputs
22
24
  accountId?: string;
@@ -88,18 +90,20 @@ const UNFundAccountPaymentComponent = (props: UNFundAccountPaymentComponentProps
88
90
 
89
91
  return (
90
92
  <SafeAreaView style={{flex: 1, minHeight: 400}}>
91
- <WebComponent
92
- ref={webRef}
93
- type={WebComponentType.fundAccountPayment}
94
- presentationMode={PresentationMode.Inherit}
95
- params={getFundAccountPaymentParams(props)}
96
- script={getFundAccountPaymentScript()}
97
- theme={props.theme}
98
- language={props.language}
99
- onMessage={message => handleMessage(message)}
100
- isScrollable={true}
101
- nestedScrollEnabled={true}
102
- />
93
+ <UNBaseView style={{flex: 1}} onLoadError={ handleUnitOnLoad }>
94
+ <WebComponent
95
+ ref={webRef}
96
+ type={WebComponentType.fundAccountPayment}
97
+ presentationMode={PresentationMode.Inherit}
98
+ params={getFundAccountPaymentParams(props)}
99
+ script={getFundAccountPaymentScript()}
100
+ theme={props.theme}
101
+ language={props.language}
102
+ onMessage={message => handleMessage(message)}
103
+ isScrollable={true}
104
+ nestedScrollEnabled={true}
105
+ />
106
+ </UNBaseView>
103
107
  </SafeAreaView>
104
108
  );
105
109
  };
@@ -1,5 +1,5 @@
1
1
  import React, { useRef, useState } from 'react';
2
- import { Dimensions, View } from 'react-native';
2
+ import { Dimensions } from 'react-native';
3
3
  import type { WebViewMessage } from '../../messages/webMessages';
4
4
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
5
5
  import { WebComponent } from '../../webComponent/WebComponent';
@@ -21,6 +21,7 @@ import type {
21
21
  UNOnLoadResponseData,
22
22
  } from '../../types/shared';
23
23
  import { MultipleCardsCardClickedEvent, MultipleCardsMessage } from '../../messages/webMessages/multipleCardsMessage';
24
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
24
25
 
25
26
  const DEFAULT_HEIGHT = Dimensions.get('window').height * 0.5;
26
27
 
@@ -90,8 +91,9 @@ const UNMultipleCardsComponent = (props: UNMultipleCardsComponentProps) => {
90
91
  }
91
92
  };
92
93
 
93
- const renderMultipleCardsWebView = () => {
94
- return (
94
+ const style = defaultHeight ? { height: defaultHeight } : { flex: 1};
95
+ return (
96
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
95
97
  <WebComponent
96
98
  ref={webRef}
97
99
  type={WebComponentType.multipleCards}
@@ -103,17 +105,7 @@ const UNMultipleCardsComponent = (props: UNMultipleCardsComponentProps) => {
103
105
  theme={props.theme}
104
106
  language={props.language}
105
107
  />
106
- );
107
- };
108
-
109
- if (!defaultHeight) {
110
- return renderMultipleCardsWebView();
111
- }
112
-
113
- return (
114
- <View style={{ height: defaultHeight }}>
115
- {renderMultipleCardsWebView()}
116
- </View>
108
+ </UNBaseView>
117
109
  );
118
110
  };
119
111
 
@@ -1,5 +1,4 @@
1
1
  import React, { useState } from 'react';
2
- import { View } from 'react-native';
3
2
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
4
3
  import { UnitMessage } from '../../messages/webMessages/unitMessages';
5
4
  import { WebComponent } from '../../webComponent/WebComponent';
@@ -12,6 +11,7 @@ import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessag
12
11
  import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
13
12
  import { withReduxStore } from '../../helpers/store/helpers';
14
13
  import { UNRepaymentData } from '../../types/shared/repayment.types';
14
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
15
15
 
16
16
  export interface UNNextRepaymentComponentProps {
17
17
  // inputs
@@ -63,7 +63,7 @@ const UNNextRepaymentComponent = (props: UNNextRepaymentComponentProps) => {
63
63
  };
64
64
 
65
65
  return (
66
- <View style={{ height, width: '100%' }}>
66
+ <UNBaseView style={{ height, width: '100%' }} onLoadError={ handleUnitOnLoad }>
67
67
  <WebComponent
68
68
  type={WebComponentType.nextRepayment}
69
69
  presentationMode={PresentationMode.Default}
@@ -73,7 +73,7 @@ const UNNextRepaymentComponent = (props: UNNextRepaymentComponentProps) => {
73
73
  onMessage={message => handleMessage(message)}
74
74
  isScrollable={false}
75
75
  />
76
- </View>
76
+ </UNBaseView>
77
77
  );
78
78
  };
79
79
 
@@ -19,6 +19,7 @@ import { useListenerToEvent } from '../../hooks/useListenerToEvent';
19
19
  import { LinkSuccess, openLink } from 'react-native-plaid-link-sdk';
20
20
  import { OpenPlaidEvent, PlaidMessage } from '../../messages/webMessages/plaidMessages';
21
21
  import { PayeeConnectedAccountEvent, PayeeCounterpartyEvent, PayeeManagementMessage, PayeeMicroDepositeConnectionEvent } from '../../messages/webMessages/payeeManagementMessage';
22
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
22
23
 
23
24
  export interface UNPayeeManagementComponentProps {
24
25
  // inputs
@@ -136,17 +137,19 @@ const UNPayeeManagementComponent = (props: UNPayeeManagementComponentProps) => {
136
137
  };
137
138
 
138
139
  return (
139
- <WebComponent
140
- ref={webRef}
141
- type={WebComponentType.payeeManagement}
142
- presentationMode={PresentationMode.Inherit}
143
- params={getPayeeParams(props)}
144
- script={getPayeeManagementScript()}
145
- theme={props.theme}
146
- nestedScrollEnabled={true}
147
- language={props.language}
148
- onMessage={message => handleMessage(message)}
149
- />
140
+ <UNBaseView style={{ height: '100%' }}>
141
+ <WebComponent
142
+ ref={webRef}
143
+ type={WebComponentType.payeeManagement}
144
+ presentationMode={PresentationMode.Inherit}
145
+ params={getPayeeParams(props)}
146
+ script={getPayeeManagementScript()}
147
+ theme={props.theme}
148
+ nestedScrollEnabled={true}
149
+ language={props.language}
150
+ onMessage={message => handleMessage(message)}
151
+ />
152
+ </UNBaseView>
150
153
  );
151
154
  };
152
155
 
@@ -1,5 +1,4 @@
1
1
  import React, { useState } from 'react';
2
- import { View } from 'react-native';
3
2
  import { WebComponent } from '../../webComponent/WebComponent';
4
3
  import { UNAccountData, UNError, UNOnLoadResponse, UNOnLoadResponseData } from '../../types/shared';
5
4
  import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
@@ -9,6 +8,7 @@ import { withReduxStore } from '../../helpers/store/helpers';
9
8
  import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
10
9
  import { UnitMessage } from '../../messages/webMessages/unitMessages';
11
10
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
11
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
12
12
 
13
13
  export interface UNProgramDetailsComponentProps {
14
14
  // inputs
@@ -61,7 +61,7 @@ const UNProgramDetailsComponent = (props: UNProgramDetailsComponentProps) => {
61
61
  };
62
62
 
63
63
  return (
64
- <View style={{ height, width: '100%' }}>
64
+ <UNBaseView style={{ height, width: '100%' }} onLoadError={ handleUnitOnLoad }>
65
65
  <WebComponent
66
66
  type={WebComponentType.programDetails}
67
67
  presentationMode={PresentationMode.Default}
@@ -70,7 +70,7 @@ const UNProgramDetailsComponent = (props: UNProgramDetailsComponentProps) => {
70
70
  language={props.language}
71
71
  onMessage={handleMessage}
72
72
  />
73
- </View>
73
+ </UNBaseView>
74
74
  );
75
75
  };
76
76
 
@@ -24,6 +24,7 @@ import { PageMessage } from '../../messages/webMessages/pageMessage';
24
24
  import UNStoreManagerHelper from '../../nativeModulesHelpers/UNStoreManagerHelper/UNStoreManagerHelper';
25
25
  import { ActivityMessage } from '../../messages/webMessages/activityMessage';
26
26
  import { setItemInWindowUnitStore } from '../../utils/windowUnitStore';
27
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
27
28
 
28
29
  export interface UNWhiteLabelAppComponentProps {
29
30
  // inputs
@@ -102,17 +103,19 @@ const UNWhiteLabelAppComponent = (props: UNWhiteLabelAppComponentProps) => {
102
103
 
103
104
  const renderWebView = () => {
104
105
  return (
105
- <WebComponent
106
- ref={webRef}
107
- type={WebComponentType.whiteLabelApp}
108
- presentationMode={PresentationMode.Inherit}
109
- params={getWhiteLabelAppParams(props)}
110
- onMessage={handleWebViewMessage}
111
- isScrollable={true}
112
- theme={props.theme}
113
- language={props.language}
114
- script={getWhiteLabelAppScript()}
115
- />
106
+ <UNBaseView style={{ flex: 1 }}>
107
+ <WebComponent
108
+ ref={webRef}
109
+ type={WebComponentType.whiteLabelApp}
110
+ presentationMode={PresentationMode.Inherit}
111
+ params={getWhiteLabelAppParams(props)}
112
+ onMessage={handleWebViewMessage}
113
+ isScrollable={true}
114
+ theme={props.theme}
115
+ language={props.language}
116
+ script={getWhiteLabelAppScript()}
117
+ />
118
+ </UNBaseView>
116
119
  );
117
120
  };
118
121