iamport-react-native 2.0.15 → 3.0.1-alpha.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 (430) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +12 -2
  3. package/lib/module/components/Certification/index.js +75 -72
  4. package/lib/module/components/Certification/index.js.map +1 -1
  5. package/lib/module/components/ErrorOnParams/index.js +13 -9
  6. package/lib/module/components/ErrorOnParams/index.js.map +1 -1
  7. package/lib/module/components/Loading/index.js +13 -9
  8. package/lib/module/components/Loading/index.js.map +1 -1
  9. package/lib/module/components/Payment/index.js +111 -93
  10. package/lib/module/components/Payment/index.js.map +1 -1
  11. package/lib/module/constants/index.js +2 -0
  12. package/lib/module/constants/index.js.map +1 -1
  13. package/lib/module/index.js +6 -4
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/module/package.json +1 -0
  16. package/lib/module/styles.js +2 -0
  17. package/lib/module/styles.js.map +1 -1
  18. package/lib/module/utils/IamportUrl.js +51 -29
  19. package/lib/module/utils/IamportUrl.js.map +1 -1
  20. package/lib/module/utils/Validation.js +3 -2
  21. package/lib/module/utils/Validation.js.map +1 -1
  22. package/lib/module/utils/ValidationForPayment.js +4 -2
  23. package/lib/module/utils/ValidationForPayment.js.map +1 -1
  24. package/lib/typescript/package.json +1 -0
  25. package/lib/typescript/{components → src/components}/Certification/index.d.ts +1 -2
  26. package/lib/typescript/src/components/Certification/index.d.ts.map +1 -0
  27. package/lib/typescript/src/components/ErrorOnParams/index.d.ts +6 -0
  28. package/lib/typescript/src/components/ErrorOnParams/index.d.ts.map +1 -0
  29. package/lib/typescript/src/components/Loading/index.d.ts +3 -0
  30. package/lib/typescript/src/components/Loading/index.d.ts.map +1 -0
  31. package/lib/typescript/{components → src/components}/Payment/index.d.ts +1 -2
  32. package/lib/typescript/src/components/Payment/index.d.ts.map +1 -0
  33. package/lib/typescript/src/constants/index.d.ts.map +1 -0
  34. package/lib/typescript/src/index.d.ts.map +1 -0
  35. package/lib/typescript/{styles.d.ts → src/styles.d.ts} +2 -2
  36. package/lib/typescript/src/styles.d.ts.map +1 -0
  37. package/lib/typescript/{utils → src/utils}/IamportUrl.d.ts +8 -7
  38. package/lib/typescript/src/utils/IamportUrl.d.ts.map +1 -0
  39. package/lib/typescript/src/utils/Validation.d.ts.map +1 -0
  40. package/lib/typescript/src/utils/ValidationForPayment.d.ts.map +1 -0
  41. package/package.json +81 -74
  42. package/src/components/Certification/index.tsx +7 -7
  43. package/src/components/ErrorOnParams/index.tsx +1 -2
  44. package/src/components/Loading/index.tsx +1 -2
  45. package/src/components/Payment/index.tsx +31 -7
  46. package/src/utils/IamportUrl.ts +54 -26
  47. package/.circleci/config.yml +0 -98
  48. package/.editorconfig +0 -15
  49. package/.gitattributes +0 -3
  50. package/.gitignore +0 -69
  51. package/.yarnrc +0 -3
  52. package/.yarnrc.yml +0 -1
  53. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  54. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  55. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  56. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  57. package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
  58. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  59. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  60. package/android/.gradle/8.9/gc.properties +0 -0
  61. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  62. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  63. package/android/.gradle/vcs-1/gc.properties +0 -0
  64. package/android/build.gradle +0 -128
  65. package/android/gradle.properties +0 -4
  66. package/android/src/main/AndroidManifest.xml +0 -4
  67. package/android/src/main/java/com/iamportreactnative/IamportReactNativePackage.kt +0 -17
  68. package/android/src/main/java/com/iamportreactnative/IamportReactNativeViewManager.kt +0 -20
  69. package/babel.config.js +0 -3
  70. package/example/.gitignore +0 -69
  71. package/example/README.md +0 -44
  72. package/example/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  73. package/example/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
  74. package/example/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
  75. package/example/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  76. package/example/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
  77. package/example/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
  78. package/example/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  79. package/example/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
  80. package/example/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  81. package/example/android/.gradle/7.5.1/gc.properties +0 -0
  82. package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  83. package/example/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  84. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  85. package/example/android/app/build.gradle +0 -183
  86. package/example/android/app/debug.keystore +0 -0
  87. package/example/android/app/proguard-rules.pro +0 -10
  88. package/example/android/app/src/debug/AndroidManifest.xml +0 -8
  89. package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java +0 -69
  90. package/example/android/app/src/main/AndroidManifest.xml +0 -34
  91. package/example/android/app/src/main/java/com/example/iamportreactnative/MainActivity.java +0 -15
  92. package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java +0 -80
  93. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  94. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  95. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  96. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  97. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  98. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  99. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  100. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  101. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  102. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  103. package/example/android/app/src/main/res/values/strings.xml +0 -3
  104. package/example/android/app/src/main/res/values/styles.xml +0 -9
  105. package/example/android/build.gradle +0 -21
  106. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  107. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  108. package/example/android/gradle.properties +0 -44
  109. package/example/android/gradlew +0 -183
  110. package/example/android/gradlew.bat +0 -103
  111. package/example/android/settings.gradle +0 -9
  112. package/example/app.json +0 -4
  113. package/example/babel.config.js +0 -11
  114. package/example/index.js +0 -5
  115. package/example/ios/File.swift +0 -8
  116. package/example/ios/Gemfile +0 -7
  117. package/example/ios/Gemfile.lock +0 -99
  118. package/example/ios/IamportReactNativeExample/AppDelegate.h +0 -15
  119. package/example/ios/IamportReactNativeExample/AppDelegate.mm +0 -138
  120. package/example/ios/IamportReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  121. package/example/ios/IamportReactNativeExample/Images.xcassets/Contents.json +0 -6
  122. package/example/ios/IamportReactNativeExample/Info.plist +0 -121
  123. package/example/ios/IamportReactNativeExample/LaunchScreen.storyboard +0 -58
  124. package/example/ios/IamportReactNativeExample/main.m +0 -16
  125. package/example/ios/IamportReactNativeExample-Bridging-Header.h +0 -3
  126. package/example/ios/IamportReactNativeExample.xcodeproj/project.pbxproj +0 -969
  127. package/example/ios/IamportReactNativeExample.xcodeproj/xcshareddata/xcschemes/IamportReactNativeExample.xcscheme +0 -99
  128. package/example/ios/IamportReactNativeExample.xcworkspace/contents.xcworkspacedata +0 -10
  129. package/example/ios/IamportReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  130. package/example/ios/Podfile +0 -57
  131. package/example/ios/Podfile.lock +0 -756
  132. package/example/metro.config.js +0 -66
  133. package/example/package.json +0 -40
  134. package/example/src/App.tsx +0 -17
  135. package/example/src/Certification/index.tsx +0 -30
  136. package/example/src/CertificationResult/index.tsx +0 -79
  137. package/example/src/CertificationTest/index.tsx +0 -214
  138. package/example/src/Home/index.tsx +0 -87
  139. package/example/src/Loading/index.tsx +0 -12
  140. package/example/src/NavigationService.tsx +0 -127
  141. package/example/src/Payment/index.tsx +0 -28
  142. package/example/src/PaymentResult/index.tsx +0 -96
  143. package/example/src/PaymentTest/index.tsx +0 -383
  144. package/example/src/Picker/index.tsx +0 -60
  145. package/example/src/constants.ts +0 -274
  146. package/example/src/utils.ts +0 -83
  147. package/example/yarn.lock +0 -7358
  148. package/exampleForExpo/.buckconfig +0 -6
  149. package/exampleForExpo/.expo/README.md +0 -8
  150. package/exampleForExpo/.expo/devices.json +0 -3
  151. package/exampleForExpo/.gitattributes +0 -1
  152. package/exampleForExpo/.gitignore +0 -125
  153. package/exampleForExpo/.idea/.gitignore +0 -3
  154. package/exampleForExpo/.idea/caches/deviceStreaming.xml +0 -549
  155. package/exampleForExpo/.idea/exampleForExpo.iml +0 -9
  156. package/exampleForExpo/.idea/misc.xml +0 -6
  157. package/exampleForExpo/.idea/modules.xml +0 -8
  158. package/exampleForExpo/.idea/vcs.xml +0 -6
  159. package/exampleForExpo/.idea/workspace.xml +0 -53
  160. package/exampleForExpo/README.md +0 -58
  161. package/exampleForExpo/__tests__/App.js +0 -10
  162. package/exampleForExpo/android/.gitignore +0 -21
  163. package/exampleForExpo/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  164. package/exampleForExpo/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  165. package/exampleForExpo/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  166. package/exampleForExpo/android/.gradle/7.5.1/gc.properties +0 -0
  167. package/exampleForExpo/android/.gradle/vcs-1/gc.properties +0 -0
  168. package/exampleForExpo/android/app/BUCK +0 -55
  169. package/exampleForExpo/android/app/build.gradle +0 -362
  170. package/exampleForExpo/android/app/build_defs.bzl +0 -19
  171. package/exampleForExpo/android/app/debug.keystore +0 -0
  172. package/exampleForExpo/android/app/proguard-rules.pro +0 -14
  173. package/exampleForExpo/android/app/src/debug/AndroidManifest.xml +0 -7
  174. package/exampleForExpo/android/app/src/debug/java/kr/iamport/exampleForExpo/ReactNativeFlipper.java +0 -69
  175. package/exampleForExpo/android/app/src/main/AndroidManifest.xml +0 -34
  176. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainActivity.java +0 -83
  177. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainApplication.java +0 -106
  178. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/MainApplicationReactNativeHost.java +0 -117
  179. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/components/MainComponentsRegistry.java +0 -36
  180. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
  181. package/exampleForExpo/android/app/src/main/jni/CMakeLists.txt +0 -7
  182. package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
  183. package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
  184. package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
  185. package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
  186. package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
  187. package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
  188. package/exampleForExpo/android/app/src/main/jni/OnLoad.cpp +0 -11
  189. package/exampleForExpo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  190. package/exampleForExpo/android/app/src/main/res/drawable/splashscreen.xml +0 -4
  191. package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  192. package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  193. package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  194. package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  195. package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  196. package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  197. package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  198. package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  199. package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  200. package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  201. package/exampleForExpo/android/app/src/main/res/values/colors.xml +0 -4
  202. package/exampleForExpo/android/app/src/main/res/values/strings.xml +0 -3
  203. package/exampleForExpo/android/app/src/main/res/values/styles.xml +0 -17
  204. package/exampleForExpo/android/app/src/main/res/values-night/colors.xml +0 -1
  205. package/exampleForExpo/android/build.gradle +0 -65
  206. package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  207. package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  208. package/exampleForExpo/android/gradle.properties +0 -53
  209. package/exampleForExpo/android/gradlew +0 -240
  210. package/exampleForExpo/android/gradlew.bat +0 -91
  211. package/exampleForExpo/android/settings.gradle +0 -17
  212. package/exampleForExpo/app.json +0 -16
  213. package/exampleForExpo/babel.config.js +0 -11
  214. package/exampleForExpo/index.js +0 -9
  215. package/exampleForExpo/ios/.gitignore +0 -30
  216. package/exampleForExpo/ios/.xcode.env +0 -11
  217. package/exampleForExpo/ios/Podfile +0 -61
  218. package/exampleForExpo/ios/Podfile.lock +0 -734
  219. package/exampleForExpo/ios/Podfile.properties.json +0 -3
  220. package/exampleForExpo/ios/exampleForExpo/AppDelegate.h +0 -9
  221. package/exampleForExpo/ios/exampleForExpo/AppDelegate.mm +0 -166
  222. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  223. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/Contents.json +0 -6
  224. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
  225. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  226. package/exampleForExpo/ios/exampleForExpo/Info.plist +0 -118
  227. package/exampleForExpo/ios/exampleForExpo/SplashScreen.storyboard +0 -43
  228. package/exampleForExpo/ios/exampleForExpo/Supporting/Expo.plist +0 -16
  229. package/exampleForExpo/ios/exampleForExpo/exampleForExpo.entitlements +0 -8
  230. package/exampleForExpo/ios/exampleForExpo/main.m +0 -10
  231. package/exampleForExpo/ios/exampleForExpo/noop-file.swift +0 -4
  232. package/exampleForExpo/ios/exampleForExpo.xcodeproj/project.pbxproj +0 -544
  233. package/exampleForExpo/ios/exampleForExpo.xcodeproj/xcshareddata/xcschemes/exampleForExpo.xcscheme +0 -88
  234. package/exampleForExpo/ios/exampleForExpo.xcworkspace/contents.xcworkspacedata +0 -10
  235. package/exampleForExpo/ios/exampleForExpo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  236. package/exampleForExpo/metro.config.js +0 -62
  237. package/exampleForExpo/package.json +0 -40
  238. package/exampleForExpo/src/App.js +0 -14
  239. package/exampleForExpo/src/Certification/index.js +0 -25
  240. package/exampleForExpo/src/CertificationResult/index.js +0 -61
  241. package/exampleForExpo/src/CertificationTest/index.js +0 -151
  242. package/exampleForExpo/src/Home/index.js +0 -80
  243. package/exampleForExpo/src/Loading/index.js +0 -10
  244. package/exampleForExpo/src/NavigationService.js +0 -102
  245. package/exampleForExpo/src/Payment/index.js +0 -23
  246. package/exampleForExpo/src/PaymentResult/index.js +0 -82
  247. package/exampleForExpo/src/PaymentTest/index.js +0 -313
  248. package/exampleForExpo/src/Picker/index.js +0 -19
  249. package/exampleForExpo/src/constants.js +0 -322
  250. package/exampleForExpo/src/utils.js +0 -116
  251. package/exampleForExpo/yarn.lock +0 -9498
  252. package/exampleForManagedExpo/.expo-shared/assets.json +0 -4
  253. package/exampleForManagedExpo/.gitignore +0 -22
  254. package/exampleForManagedExpo/App.js +0 -11
  255. package/exampleForManagedExpo/README.md +0 -33
  256. package/exampleForManagedExpo/app.json +0 -90
  257. package/exampleForManagedExpo/assets/adaptive-icon.png +0 -0
  258. package/exampleForManagedExpo/assets/favicon.png +0 -0
  259. package/exampleForManagedExpo/assets/icon.png +0 -0
  260. package/exampleForManagedExpo/assets/splash.png +0 -0
  261. package/exampleForManagedExpo/babel.config.js +0 -11
  262. package/exampleForManagedExpo/metro.config.js +0 -62
  263. package/exampleForManagedExpo/package.json +0 -36
  264. package/exampleForManagedExpo/src/Certification/index.js +0 -25
  265. package/exampleForManagedExpo/src/CertificationResult/index.js +0 -61
  266. package/exampleForManagedExpo/src/CertificationTest/index.js +0 -151
  267. package/exampleForManagedExpo/src/Home/index.js +0 -80
  268. package/exampleForManagedExpo/src/Loading/index.js +0 -10
  269. package/exampleForManagedExpo/src/NavigationService.js +0 -102
  270. package/exampleForManagedExpo/src/Payment/index.js +0 -23
  271. package/exampleForManagedExpo/src/PaymentResult/index.js +0 -82
  272. package/exampleForManagedExpo/src/PaymentTest/index.js +0 -313
  273. package/exampleForManagedExpo/src/Picker/index.js +0 -19
  274. package/exampleForManagedExpo/src/constants.js +0 -322
  275. package/exampleForManagedExpo/src/utils.js +0 -116
  276. package/exampleForManagedExpo/yarn.lock +0 -9411
  277. package/exampleForWebView/.buckconfig +0 -6
  278. package/exampleForWebView/.eslintrc.js +0 -4
  279. package/exampleForWebView/.gitattributes +0 -3
  280. package/exampleForWebView/.gitignore +0 -68
  281. package/exampleForWebView/.prettierrc.js +0 -7
  282. package/exampleForWebView/.watchmanconfig +0 -1
  283. package/exampleForWebView/README.md +0 -77
  284. package/exampleForWebView/__tests__/App-test.tsx +0 -14
  285. package/exampleForWebView/_editorconfig +0 -3
  286. package/exampleForWebView/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  287. package/exampleForWebView/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  288. package/exampleForWebView/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  289. package/exampleForWebView/android/.gradle/7.5.1/gc.properties +0 -0
  290. package/exampleForWebView/android/.gradle/vcs-1/gc.properties +0 -0
  291. package/exampleForWebView/android/app/BUCK +0 -55
  292. package/exampleForWebView/android/app/build.gradle +0 -313
  293. package/exampleForWebView/android/app/build_defs.bzl +0 -19
  294. package/exampleForWebView/android/app/debug.keystore +0 -0
  295. package/exampleForWebView/android/app/proguard-rules.pro +0 -10
  296. package/exampleForWebView/android/app/src/debug/AndroidManifest.xml +0 -13
  297. package/exampleForWebView/android/app/src/debug/java/com/exampleforwebview/ReactNativeFlipper.java +0 -73
  298. package/exampleForWebView/android/app/src/main/AndroidManifest.xml +0 -26
  299. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainActivity.java +0 -48
  300. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainApplication.java +0 -91
  301. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/MainApplicationReactNativeHost.java +0 -116
  302. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/components/MainComponentsRegistry.java +0 -36
  303. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
  304. package/exampleForWebView/android/app/src/main/jni/CMakeLists.txt +0 -7
  305. package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
  306. package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
  307. package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
  308. package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
  309. package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
  310. package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
  311. package/exampleForWebView/android/app/src/main/jni/OnLoad.cpp +0 -11
  312. package/exampleForWebView/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  313. package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  314. package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  315. package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  316. package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  317. package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  318. package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  319. package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  320. package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  321. package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  322. package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  323. package/exampleForWebView/android/app/src/main/res/values/strings.xml +0 -3
  324. package/exampleForWebView/android/app/src/main/res/values/styles.xml +0 -9
  325. package/exampleForWebView/android/build.gradle +0 -51
  326. package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  327. package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  328. package/exampleForWebView/android/gradle.properties +0 -40
  329. package/exampleForWebView/android/gradlew +0 -234
  330. package/exampleForWebView/android/gradlew.bat +0 -89
  331. package/exampleForWebView/android/settings.gradle +0 -11
  332. package/exampleForWebView/app.json +0 -4
  333. package/exampleForWebView/babel.config.js +0 -11
  334. package/exampleForWebView/index.js +0 -9
  335. package/exampleForWebView/ios/.xcode.env +0 -11
  336. package/exampleForWebView/ios/Podfile +0 -43
  337. package/exampleForWebView/ios/Podfile.lock +0 -748
  338. package/exampleForWebView/ios/exampleForWebView/AppDelegate.h +0 -8
  339. package/exampleForWebView/ios/exampleForWebView/AppDelegate.mm +0 -133
  340. package/exampleForWebView/ios/exampleForWebView/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  341. package/exampleForWebView/ios/exampleForWebView/Images.xcassets/Contents.json +0 -6
  342. package/exampleForWebView/ios/exampleForWebView/Info.plist +0 -96
  343. package/exampleForWebView/ios/exampleForWebView/LaunchScreen.storyboard +0 -47
  344. package/exampleForWebView/ios/exampleForWebView/main.m +0 -10
  345. package/exampleForWebView/ios/exampleForWebView.xcodeproj/project.pbxproj +0 -723
  346. package/exampleForWebView/ios/exampleForWebView.xcodeproj/xcshareddata/xcschemes/exampleForWebView.xcscheme +0 -88
  347. package/exampleForWebView/ios/exampleForWebView.xcworkspace/contents.xcworkspacedata +0 -10
  348. package/exampleForWebView/ios/exampleForWebView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  349. package/exampleForWebView/ios/exampleForWebViewTests/Info.plist +0 -24
  350. package/exampleForWebView/ios/exampleForWebViewTests/exampleForWebViewTests.m +0 -66
  351. package/exampleForWebView/manuals/CERTIFICATION.md +0 -223
  352. package/exampleForWebView/manuals/PAYMENT.md +0 -232
  353. package/exampleForWebView/metro.config.js +0 -61
  354. package/exampleForWebView/package.json +0 -54
  355. package/exampleForWebView/src/App.tsx +0 -50
  356. package/exampleForWebView/src/Certification.tsx +0 -54
  357. package/exampleForWebView/src/Home.tsx +0 -49
  358. package/exampleForWebView/src/Loading.tsx +0 -23
  359. package/exampleForWebView/src/Payment.tsx +0 -65
  360. package/exampleForWebView/yarn.lock +0 -7362
  361. package/iamport-react-native.podspec +0 -19
  362. package/ios/IamportReactNative-Bridging-Header.h +0 -1
  363. package/ios/IamportReactNative.xcodeproj/project.pbxproj +0 -293
  364. package/ios/IamportReactNativeViewManager.m +0 -12
  365. package/ios/IamportReactNativeViewManager.swift +0 -32
  366. package/lib/commonjs/components/Certification/index.js +0 -121
  367. package/lib/commonjs/components/Certification/index.js.map +0 -1
  368. package/lib/commonjs/components/ErrorOnParams/index.js +0 -50
  369. package/lib/commonjs/components/ErrorOnParams/index.js.map +0 -1
  370. package/lib/commonjs/components/Loading/index.js +0 -34
  371. package/lib/commonjs/components/Loading/index.js.map +0 -1
  372. package/lib/commonjs/components/Payment/index.js +0 -225
  373. package/lib/commonjs/components/Payment/index.js.map +0 -1
  374. package/lib/commonjs/constants/index.js +0 -114
  375. package/lib/commonjs/constants/index.js.map +0 -1
  376. package/lib/commonjs/img/iamport-logo.png +0 -0
  377. package/lib/commonjs/index.js +0 -29
  378. package/lib/commonjs/index.js.map +0 -1
  379. package/lib/commonjs/styles.js +0 -27
  380. package/lib/commonjs/styles.js.map +0 -1
  381. package/lib/commonjs/utils/IamportUrl.js +0 -289
  382. package/lib/commonjs/utils/IamportUrl.js.map +0 -1
  383. package/lib/commonjs/utils/Validation.js +0 -109
  384. package/lib/commonjs/utils/Validation.js.map +0 -1
  385. package/lib/commonjs/utils/ValidationForPayment.js +0 -112
  386. package/lib/commonjs/utils/ValidationForPayment.js.map +0 -1
  387. package/lib/typescript/components/Certification/index.d.ts.map +0 -1
  388. package/lib/typescript/components/ErrorOnParams/index.d.ts +0 -7
  389. package/lib/typescript/components/ErrorOnParams/index.d.ts.map +0 -1
  390. package/lib/typescript/components/Loading/index.d.ts +0 -4
  391. package/lib/typescript/components/Loading/index.d.ts.map +0 -1
  392. package/lib/typescript/components/Payment/index.d.ts.map +0 -1
  393. package/lib/typescript/constants/index.d.ts.map +0 -1
  394. package/lib/typescript/index.d.ts.map +0 -1
  395. package/lib/typescript/styles.d.ts.map +0 -1
  396. package/lib/typescript/utils/IamportUrl.d.ts.map +0 -1
  397. package/lib/typescript/utils/Validation.d.ts.map +0 -1
  398. package/lib/typescript/utils/ValidationForPayment.d.ts.map +0 -1
  399. package/manuals/CALLBACK.md +0 -72
  400. package/manuals/EXAMPLE.md +0 -168
  401. package/manuals/EXPO.md +0 -246
  402. package/manuals/INSTALL.md +0 -31
  403. package/manuals/SETTING.md +0 -140
  404. package/manuals/SUPPORT.md +0 -35
  405. package/manuals/TRANS.md +0 -77
  406. package/manuals/VERSION.md +0 -187
  407. package/manuals/assets/after-linking-iamport.png +0 -0
  408. package/manuals/assets/after-linking-webview.png +0 -0
  409. package/manuals/assets/allow-arbitrary.gif +0 -0
  410. package/manuals/assets/android-studio-avd-manager.png +0 -0
  411. package/manuals/assets/android-studio-build.png +0 -0
  412. package/manuals/assets/app-scheme-registry.gif +0 -0
  413. package/manuals/assets/expo-eject.png +0 -0
  414. package/manuals/assets/ios-emulator-certification.png +0 -0
  415. package/manuals/assets/ios-emulator-home.png +0 -0
  416. package/manuals/assets/ios-emulator-payment.png +0 -0
  417. package/manuals/assets/ios-trans-create-header-file-1.png +0 -0
  418. package/manuals/assets/ios-trans-create-header-file-2.png +0 -0
  419. package/manuals/assets/ios-trans-create-objectivec-file-1.png +0 -0
  420. package/manuals/assets/ios-trans-create-objectivec-file-2.png +0 -0
  421. package/manuals/assets/ios-trans-result.png +0 -0
  422. package/manuals/assets/webview-peer-dependency.png +0 -0
  423. package/scripts/bootstrap.js +0 -24
  424. package/tsconfig.build.json +0 -9
  425. package/tsconfig.json +0 -26
  426. package/yarn.lock +0 -6174
  427. /package/lib/typescript/{constants → src/constants}/index.d.ts +0 -0
  428. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  429. /package/lib/typescript/{utils → src/utils}/Validation.d.ts +0 -0
  430. /package/lib/typescript/{utils → src/utils}/ValidationForPayment.d.ts +0 -0
@@ -1,66 +0,0 @@
1
- const path = require('path');
2
- const blacklist = require('metro-config/src/defaults/exclusionList');
3
- const escape = require('escape-string-regexp');
4
- const pak = require('../package.json');
5
-
6
- const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
7
-
8
- const root = path.resolve(__dirname, '..');
9
-
10
- const modules = Object.keys({
11
- ...pak.peerDependencies,
12
- });
13
-
14
- module.exports = mergeConfig(getDefaultConfig(__dirname), {
15
- projectRoot: __dirname,
16
- watchFolders: [root],
17
-
18
- // We need to make sure that only one version is loaded for peerDependencies
19
- // So we blacklist them at the root, and alias them to the versions in example's node_modules
20
- resolver: {
21
- blacklistRE: blacklist(
22
- modules.map(
23
- (m) =>
24
- new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
25
- ),
26
- modules.map(
27
- (m) =>
28
- new RegExp(
29
- `^${escape(
30
- path.join(root, 'exampleForExpo/node_modules', m)
31
- )}\\/.*$`
32
- )
33
- ),
34
- modules.map(
35
- (m) =>
36
- new RegExp(
37
- `^${escape(
38
- path.join(root, 'exampleForManagedExpo/node_modules', m)
39
- )}\\/.*$`
40
- )
41
- ),
42
- modules.map(
43
- (m) =>
44
- new RegExp(
45
- `^${escape(
46
- path.join(root, 'exampleForWebView/node_modules', m)
47
- )}\\/.*$`
48
- )
49
- )
50
- ),
51
-
52
- extraNodeModules: modules.reduce((acc, name) => {
53
- acc[name] = path.join(__dirname, 'node_modules', name);
54
- return acc;
55
- }, {}),
56
- },
57
-
58
- transformer: {
59
- getTransformOptions: async () => ({
60
- transform: {
61
- experimentalImportSupport: false,
62
- inlineRequires: true,
63
- },
64
- }),
65
- },
66
- });
@@ -1,40 +0,0 @@
1
- {
2
- "name": "iamport-react-native-example",
3
- "description": "아임포트 리액트 네이티브 예제",
4
- "version": "0.0.1",
5
- "private": true,
6
- "scripts": {
7
- "android": "react-native run-android",
8
- "ios": "react-native run-ios",
9
- "start": "react-native start"
10
- },
11
- "dependencies": {
12
- "@react-native-community/masked-view": "^0.1.11",
13
- "@react-navigation/native": "^6.1.1",
14
- "@react-navigation/stack": "^6.3.10",
15
- "@types/react-native-vector-icons": "^6.4.12",
16
- "@gluestack-ui/themed": "^1.0.33",
17
- "@gluestack-ui/config": "^1.0.10",
18
- "@gluestack-style/react": "^1.0.30",
19
- "react": "18.2.0",
20
- "react-native": "0.72.6",
21
- "react-native-gesture-handler": "^2.9.0",
22
- "react-native-safe-area-context": "^4.4.1",
23
- "react-native-screens": "^3.18.2",
24
- "react-native-svg": "^13.6.0",
25
- "react-native-vector-icons": "^9.2.0",
26
- "react-native-webview": "^13.6.2",
27
- "styled-components": "^5.3.6",
28
- "styled-system": "^5.1.5"
29
- },
30
- "devDependencies": {
31
- "@babel/core": "^7.20.5",
32
- "@babel/preset-env": "^7.20.2",
33
- "@babel/runtime": "^7.20.6",
34
- "@types/react": "^18.0.26",
35
- "babel-plugin-module-resolver": "^4.1.0",
36
- "metro-react-native-babel-preset": "^0.73.6",
37
- "react-native-codegen": "^0.71.3",
38
- "@react-native/metro-config": "^0.74.0"
39
- }
40
- }
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { SafeAreaProvider } from 'react-native-safe-area-context';
3
- import { IamportNavigation } from './NavigationService';
4
- import { GluestackUIProvider } from '@gluestack-ui/themed';
5
- import { config } from '@gluestack-ui/config';
6
-
7
- function App() {
8
- return (
9
- <GluestackUIProvider config={config}>
10
- <SafeAreaProvider>
11
- <IamportNavigation />
12
- </SafeAreaProvider>
13
- </GluestackUIProvider>
14
- );
15
- }
16
-
17
- export default App;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import IMP from 'iamport-react-native';
3
- import type { RootStackParamList } from '../NavigationService';
4
- import type { StackScreenProps } from '@react-navigation/stack';
5
- import Loading from '../Loading';
6
- import { SafeAreaView } from 'react-native-safe-area-context';
7
-
8
- type Props = StackScreenProps<RootStackParamList, 'Certification'>;
9
-
10
- function Certification({ route, navigation }: Props) {
11
- const params = route.params?.params!;
12
- const tierCode = route.params?.tierCode;
13
- const userCode = route.params?.userCode!;
14
-
15
- return (
16
- <SafeAreaView style={{ flex: 1, justifyContent: 'center' }}>
17
- <IMP.Certification
18
- userCode={userCode}
19
- tierCode={tierCode}
20
- data={params}
21
- loading={<Loading />}
22
- callback={(response) =>
23
- navigation.replace('CertificationResult', response)
24
- }
25
- />
26
- </SafeAreaView>
27
- );
28
- }
29
-
30
- export default Certification;
@@ -1,79 +0,0 @@
1
- import React from 'react';
2
- import type { StackScreenProps } from '@react-navigation/stack';
3
- import type { RootStackParamList } from '../NavigationService';
4
- import { SafeAreaView } from 'react-native-safe-area-context';
5
- import {
6
- ArrowLeftIcon,
7
- Box,
8
- Button,
9
- ButtonIcon,
10
- ButtonText,
11
- Heading,
12
- HStack,
13
- Text,
14
- VStack,
15
- } from '@gluestack-ui/themed';
16
- import FontAwesome from 'react-native-vector-icons/FontAwesome';
17
-
18
- type Props = StackScreenProps<RootStackParamList, 'CertificationResult'>;
19
-
20
- function CertificationResult({ route, navigation }: Props) {
21
- const imp_success = route.params?.imp_success;
22
- const success = route.params?.success;
23
- const imp_uid = route.params?.imp_uid;
24
- const merchant_uid = route.params?.merchant_uid;
25
- const error_msg = route.params?.error_msg;
26
-
27
- const isSuccess = !(
28
- imp_success === 'false' ||
29
- imp_success === false ||
30
- success === 'false' ||
31
- success === false
32
- );
33
-
34
- return (
35
- <SafeAreaView
36
- style={{
37
- flex: 1,
38
- justifyContent: 'center',
39
- margin: 10,
40
- backgroundColor: '#fff',
41
- alignItems: 'center',
42
- }}
43
- >
44
- {isSuccess ? (
45
- <FontAwesome name={'check-circle'} color={'#52c41a'} size={150} />
46
- ) : (
47
- <FontAwesome name={'warning'} color={'#f5222d'} size={150} />
48
- )}
49
- <Heading size={'2xl'}>
50
- {`본인인증에 ${isSuccess ? '성공' : '실패'}하였습니다`}
51
- </Heading>
52
- <Box>
53
- <VStack my={10}>
54
- <HStack mx={'15%'} my={10}>
55
- <Text w={'40%'}>아임포트 번호</Text>
56
- <Text w={'60%'}>{imp_uid}</Text>
57
- </HStack>
58
- {success ? (
59
- <HStack mx={'15%'} my={10}>
60
- <Text w={'40%'}>주문번호</Text>
61
- <Text w={'60%'}>{merchant_uid}</Text>
62
- </HStack>
63
- ) : (
64
- <HStack mx={'15%'} my={10}>
65
- <Text w={'40%'}>에러메시지</Text>
66
- <Text w={'60%'}>{error_msg}</Text>
67
- </HStack>
68
- )}
69
- </VStack>
70
- </Box>
71
- <Button size={'md'} onPress={() => navigation.navigate('Home')}>
72
- <ButtonIcon as={ArrowLeftIcon} />
73
- <ButtonText>돌아가기</ButtonText>
74
- </Button>
75
- </SafeAreaView>
76
- );
77
- }
78
-
79
- export default CertificationResult;
@@ -1,214 +0,0 @@
1
- import React, { useState } from 'react';
2
- import type { StackScreenProps } from '@react-navigation/stack';
3
- import type {
4
- CertificationParams,
5
- RootStackParamList,
6
- } from '../NavigationService';
7
- import { CARRIERS, CERT_PGS } from '../constants';
8
- import {
9
- SafeAreaView,
10
- useSafeAreaInsets,
11
- } from 'react-native-safe-area-context';
12
- import { IMPConst } from 'iamport-react-native';
13
- import { Platform } from 'react-native';
14
- import {
15
- Button,
16
- ButtonText,
17
- FormControl,
18
- Input,
19
- InputField,
20
- KeyboardAvoidingView,
21
- ScrollView,
22
- Text,
23
- VStack,
24
- } from '@gluestack-ui/themed';
25
- import Picker from '../Picker';
26
-
27
- type Props = StackScreenProps<RootStackParamList, 'CertificationTest'>;
28
-
29
- function CertificationTest({ navigation }: Props) {
30
- const [userCode, setUserCode] = useState('');
31
- const [pg, setPg] = useState('danal');
32
- const [merchantUid, setMerchantUid] = useState(`mid_${new Date().getTime()}`);
33
- const [company, setCompany] = useState('아임포트');
34
- const [carrier, setCarrier] = useState('');
35
- const [name, setName] = useState('');
36
- const [phone, setPhone] = useState('');
37
- const [minAge, setMinAge] = useState('');
38
- const [tierCode, setTierCode] = useState('');
39
-
40
- const insets = useSafeAreaInsets();
41
-
42
- return (
43
- <SafeAreaView
44
- style={{
45
- flex: 1,
46
- justifyContent: 'center',
47
- backgroundColor: '#f5f5f5',
48
- paddingTop: -insets.top,
49
- }}
50
- >
51
- <KeyboardAvoidingView
52
- flex={1}
53
- behavior={Platform.OS === 'ios' ? 'padding' : undefined}
54
- keyboardVerticalOffset={Platform.OS === 'ios' ? 95 : undefined}
55
- >
56
- <ScrollView mx={1} backgroundColor={'#fff'}>
57
- <FormControl p={2} borderRadius={3}>
58
- <VStack>
59
- <FormControl.Label my={1}>
60
- <Text color={'#9e9e9e'} fontSize={15}>
61
- 가맹점 식별코드
62
- </Text>
63
- </FormControl.Label>
64
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
65
- <InputField
66
- value={userCode}
67
- onChangeText={(value) => setUserCode(value)}
68
- />
69
- </Input>
70
- </VStack>
71
- <VStack>
72
- <FormControl.Label my={1}>
73
- <Text color={'#9e9e9e'} fontSize={15}>
74
- PG사
75
- </Text>
76
- </FormControl.Label>
77
- <Picker
78
- data={CERT_PGS}
79
- selectedValue={pg}
80
- onValueChange={(value) => setPg(value)}
81
- />
82
- </VStack>
83
- <VStack>
84
- <FormControl.Label my={1}>
85
- <Text color={'#9e9e9e'} fontSize={15}>
86
- 주문번호
87
- </Text>
88
- </FormControl.Label>
89
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
90
- <InputField
91
- value={merchantUid}
92
- onChangeText={(value) => setMerchantUid(value)}
93
- />
94
- </Input>
95
- </VStack>
96
- {pg === 'danal' && (
97
- <>
98
- <VStack>
99
- <FormControl.Label my={1}>
100
- <Text color={'#9e9e9e'} fontSize={15}>
101
- 회사명
102
- </Text>
103
- </FormControl.Label>
104
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
105
- <InputField
106
- value={company}
107
- onChangeText={(value) => setCompany(value)}
108
- />
109
- </Input>
110
- </VStack>
111
- <VStack>
112
- <FormControl.Label my={1}>
113
- <Text color={'#9e9e9e'} fontSize={15}>
114
- 통신사
115
- </Text>
116
- </FormControl.Label>
117
- <Picker
118
- data={CARRIERS}
119
- selectedValue={carrier}
120
- onValueChange={(value) => setCarrier(value)}
121
- />
122
- </VStack>
123
- <VStack>
124
- <FormControl.Label my={1}>
125
- <Text color={'#9e9e9e'} fontSize={15}>
126
- 이름
127
- </Text>
128
- </FormControl.Label>
129
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
130
- <InputField
131
- value={name}
132
- onChangeText={(value) => setName(value)}
133
- />
134
- </Input>
135
- </VStack>
136
- <VStack>
137
- <FormControl.Label my={1}>
138
- <Text color={'#9e9e9e'} fontSize={15}>
139
- 전화번호
140
- </Text>
141
- </FormControl.Label>
142
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
143
- <InputField
144
- keyboardType="number-pad"
145
- returnKeyType={'done'}
146
- value={phone}
147
- onChangeText={(value) => setPhone(value)}
148
- />
149
- </Input>
150
- </VStack>
151
- <VStack>
152
- <FormControl.Label my={1}>
153
- <Text color={'#9e9e9e'} fontSize={15}>
154
- 최소연령
155
- </Text>
156
- </FormControl.Label>
157
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
158
- <InputField
159
- keyboardType="number-pad"
160
- returnKeyType={'done'}
161
- value={minAge}
162
- onChangeText={(value) => setMinAge(value)}
163
- />
164
- </Input>
165
- </VStack>
166
- </>
167
- )}
168
- <VStack>
169
- <FormControl.Label my={1}>
170
- <Text color={'#9e9e9e'} fontSize={15}>
171
- 티어 코드
172
- </Text>
173
- </FormControl.Label>
174
- <Input mx={2} mb={1} flex={1} p={1} variant={'underlined'}>
175
- <InputField
176
- value={tierCode}
177
- onChangeText={(value) => setTierCode(value)}
178
- />
179
- </Input>
180
- </VStack>
181
- <Button
182
- mt={4}
183
- bgColor={'#344e81'}
184
- /* @ts-ignore */
185
- onPress={() => {
186
- const data: CertificationParams = {
187
- params: {
188
- merchant_uid: merchantUid,
189
- company,
190
- carrier,
191
- name,
192
- phone,
193
- pg,
194
- min_age: minAge,
195
- m_redirect_url: IMPConst.M_REDIRECT_URL,
196
- },
197
- userCode,
198
- tierCode,
199
- };
200
- navigation.navigate('Certification', data);
201
- }}
202
- >
203
- <ButtonText fontWeight={'bold'} color={'#fff'}>
204
- 본인인증 하기
205
- </ButtonText>
206
- </Button>
207
- </FormControl>
208
- </ScrollView>
209
- </KeyboardAvoidingView>
210
- </SafeAreaView>
211
- );
212
- }
213
-
214
- export default CertificationTest;
@@ -1,87 +0,0 @@
1
- import React from 'react';
2
- import FontAwesome from 'react-native-vector-icons/FontAwesome';
3
- import type { StackScreenProps } from '@react-navigation/stack';
4
- import type { RootStackParamList } from '../NavigationService';
5
- import {
6
- Button,
7
- ButtonGroup,
8
- Center,
9
- Text,
10
- View,
11
- VStack,
12
- } from '@gluestack-ui/themed';
13
-
14
- type Props = StackScreenProps<RootStackParamList, 'Home'>;
15
-
16
- function Home({ navigation }: Props) {
17
- return (
18
- <View flex={1}>
19
- <View
20
- flex={1}
21
- position={'relative'}
22
- alignItems={'center'}
23
- bgColor={'#344e81'}
24
- justifyContent={'center'}
25
- >
26
- <Text
27
- color={'#fff'}
28
- fontSize={20}
29
- mb={10}
30
- fontWeight={'bold'}
31
- textAlign={'center'}
32
- >
33
- 아임포트 테스트
34
- </Text>
35
- <Text color={'#fff'} fontSize={15} textAlign={'center'}>
36
- 아임포트 리액트 네이티브 모듈 테스트 화면입니다.
37
- </Text>
38
- <Text color={'#fff'} fontSize={15} textAlign={'center'}>
39
- 아래 버튼을 눌러 결제 또는 본인인증 테스트를 진행해주세요.
40
- </Text>
41
- </View>
42
- <View
43
- flex={1}
44
- position={'relative'}
45
- bottom={'0%'}
46
- w={'90%'}
47
- flexDirection={'row'}
48
- alignSelf={'center'}
49
- >
50
- <ButtonGroup bottom={'50%'} width={'100%'} alignSelf={'center'}>
51
- <Button
52
- h={60}
53
- m={'4%'}
54
- bgColor={'#fff'}
55
- borderRadius={3}
56
- flex={1}
57
- onPress={() => navigation.push('PaymentTest')}
58
- >
59
- <VStack alignItems={'center'}>
60
- <Center>
61
- <FontAwesome name={'credit-card'} size={30} />
62
- <Text fontSize={15}>결제 테스트</Text>
63
- </Center>
64
- </VStack>
65
- </Button>
66
- <Button
67
- h={60}
68
- m={'4%'}
69
- bgColor={'#fff'}
70
- borderRadius={3}
71
- flex={1}
72
- onPress={() => navigation.push('CertificationTest')}
73
- >
74
- <VStack alignItems={'center'}>
75
- <Center>
76
- <FontAwesome name={'user'} size={30} />
77
- <Text fontSize={15}>본인인증 테스트</Text>
78
- </Center>
79
- </VStack>
80
- </Button>
81
- </ButtonGroup>
82
- </View>
83
- </View>
84
- );
85
- }
86
-
87
- export default Home;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { Text, View } from '@gluestack-ui/themed';
3
-
4
- function Loading() {
5
- return (
6
- <View flex={1} alignItems={'center'} justifyContent={'center'}>
7
- <Text fontSize={20}>잠시만 기다려주세요...</Text>
8
- </View>
9
- );
10
- }
11
-
12
- export default Loading;
@@ -1,127 +0,0 @@
1
- import React from 'react';
2
- import { createStackNavigator } from '@react-navigation/stack';
3
- import { NavigationContainer } from '@react-navigation/native';
4
- import Home from './Home';
5
- import Certification from './Certification';
6
- import CertificationTest from './CertificationTest';
7
- import CertificationResult from './CertificationResult';
8
- import Payment from './Payment';
9
- import PaymentTest from './PaymentTest';
10
- import PaymentResult from './PaymentResult';
11
- import type { IMPData } from 'iamport-react-native';
12
-
13
- export interface CertificationParams {
14
- params: IMPData.CertificationData;
15
- userCode: string;
16
- tierCode?: string;
17
- }
18
-
19
- export interface PaymentParams {
20
- params: IMPData.PaymentData;
21
- userCode: string;
22
- tierCode?: string;
23
- }
24
-
25
- export type RootStackParamList = {
26
- Home: undefined;
27
- Certification: CertificationParams | undefined;
28
- CertificationTest: undefined;
29
- CertificationResult: any;
30
- Payment: PaymentParams | undefined;
31
- PaymentTest: undefined;
32
- PaymentResult: any;
33
- };
34
-
35
- const RootStack = createStackNavigator<RootStackParamList>();
36
-
37
- function IamportNavigation() {
38
- return (
39
- <NavigationContainer>
40
- <RootStack.Navigator
41
- initialRouteName="Home"
42
- // screenOptions={{ headerShown: false }}
43
- >
44
- <RootStack.Screen
45
- options={{ headerShown: false }}
46
- name="Home"
47
- component={Home}
48
- />
49
- <RootStack.Screen
50
- options={{ headerShown: false }}
51
- name="Certification"
52
- component={Certification}
53
- />
54
- <RootStack.Screen
55
- options={{
56
- headerTitle: '아임포트 본인인증 테스트',
57
- headerTitleAlign: 'center',
58
- headerStyle: {
59
- backgroundColor: '#344e81',
60
- },
61
- headerTitleStyle: {
62
- color: '#fff',
63
- },
64
- headerTintColor: '#fff',
65
- headerBackTitle: ' ',
66
- }}
67
- name="CertificationTest"
68
- component={CertificationTest}
69
- />
70
- <RootStack.Screen
71
- options={{
72
- headerTitle: '아임포트 본인인증 결과',
73
- headerTitleAlign: 'center',
74
- headerStyle: {
75
- backgroundColor: '#344e81',
76
- },
77
- headerTitleStyle: {
78
- color: '#fff',
79
- },
80
- headerLeft: () => null,
81
- }}
82
- name="CertificationResult"
83
- component={CertificationResult}
84
- />
85
- <RootStack.Screen
86
- options={{ headerShown: false }}
87
- name="Payment"
88
- component={Payment}
89
- />
90
- <RootStack.Screen
91
- options={{
92
- headerTitle: '아임포트 결제 테스트',
93
- headerTitleAlign: 'center',
94
- headerStyle: {
95
- backgroundColor: '#344e81',
96
- },
97
- headerTitleStyle: {
98
- color: '#fff',
99
- },
100
- headerTintColor: '#fff',
101
- headerBackTitle: ' ',
102
- }}
103
- name="PaymentTest"
104
- component={PaymentTest}
105
- />
106
- <RootStack.Screen
107
- options={{
108
- headerTitle: '아임포트 결제 결과',
109
- headerTitleAlign: 'center',
110
- headerStyle: {
111
- backgroundColor: '#344e81',
112
- },
113
- headerTitleStyle: {
114
- color: '#fff',
115
- },
116
- headerTintColor: '#fff',
117
- headerLeft: () => null,
118
- }}
119
- name="PaymentResult"
120
- component={PaymentResult}
121
- />
122
- </RootStack.Navigator>
123
- </NavigationContainer>
124
- );
125
- }
126
-
127
- export { RootStack, IamportNavigation };