@developer_tribe/react-native-comnyx 0.1.0 → 0.2.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 (385) hide show
  1. package/lib/commonjs/App.js +59 -0
  2. package/lib/commonjs/App.js.map +1 -0
  3. package/lib/commonjs/__dev__.js +29 -0
  4. package/lib/commonjs/__dev__.js.map +1 -0
  5. package/lib/commonjs/api/api.js +22 -0
  6. package/lib/commonjs/api/api.js.map +1 -0
  7. package/lib/commonjs/api/conversations.js +37 -0
  8. package/lib/commonjs/api/conversations.js.map +1 -0
  9. package/lib/commonjs/api/customers.js +15 -0
  10. package/lib/commonjs/api/customers.js.map +1 -0
  11. package/lib/commonjs/api/index.js +33 -0
  12. package/lib/commonjs/api/index.js.map +1 -0
  13. package/lib/commonjs/api/messages.js +27 -0
  14. package/lib/commonjs/api/messages.js.map +1 -0
  15. package/lib/commonjs/assets/clock.png +0 -0
  16. package/lib/commonjs/assets/double-check.png +0 -0
  17. package/lib/commonjs/assets/down.png +0 -0
  18. package/lib/commonjs/assets/send.png +0 -0
  19. package/lib/commonjs/components/AppText.js +38 -0
  20. package/lib/commonjs/components/AppText.js.map +1 -0
  21. package/lib/commonjs/components/ChatList.js +268 -0
  22. package/lib/commonjs/components/ChatList.js.map +1 -0
  23. package/lib/commonjs/components/CustomerForm.js +213 -0
  24. package/lib/commonjs/components/CustomerForm.js.map +1 -0
  25. package/lib/commonjs/components/EmptyList.js +40 -0
  26. package/lib/commonjs/components/EmptyList.js.map +1 -0
  27. package/lib/commonjs/components/InitFailed.js +51 -0
  28. package/lib/commonjs/components/InitFailed.js.map +1 -0
  29. package/lib/commonjs/components/MessageInput.js +119 -0
  30. package/lib/commonjs/components/MessageInput.js.map +1 -0
  31. package/lib/commonjs/components/MessageItem.js +117 -0
  32. package/lib/commonjs/components/MessageItem.js.map +1 -0
  33. package/lib/commonjs/constants/translations.js +219 -0
  34. package/lib/commonjs/constants/translations.js.map +1 -0
  35. package/lib/commonjs/data/fake/conversations.js +95 -0
  36. package/lib/commonjs/data/fake/conversations.js.map +1 -0
  37. package/lib/commonjs/data/fake/customers.js +24 -0
  38. package/lib/commonjs/data/fake/customers.js.map +1 -0
  39. package/lib/commonjs/data/fake/messages.js +67 -0
  40. package/lib/commonjs/data/fake/messages.js.map +1 -0
  41. package/lib/commonjs/hooks/useLocalize.js +20 -0
  42. package/lib/commonjs/hooks/useLocalize.js.map +1 -0
  43. package/lib/commonjs/hooks/usePolling.js +50 -0
  44. package/lib/commonjs/hooks/usePolling.js.map +1 -0
  45. package/lib/commonjs/hooks/useThemeColors.js +17 -0
  46. package/lib/commonjs/hooks/useThemeColors.js.map +1 -0
  47. package/lib/commonjs/index.js +15 -6
  48. package/lib/commonjs/index.js.map +1 -1
  49. package/lib/commonjs/register.js +21 -0
  50. package/lib/commonjs/register.js.map +1 -0
  51. package/lib/commonjs/store.js +79 -0
  52. package/lib/commonjs/store.js.map +1 -0
  53. package/lib/commonjs/types/ApiOptions.js +2 -0
  54. package/lib/commonjs/types/ApiOptions.js.map +1 -0
  55. package/lib/commonjs/types/Conversation.js +2 -0
  56. package/lib/commonjs/types/Conversation.js.map +1 -0
  57. package/lib/commonjs/types/Customer.js +2 -0
  58. package/lib/commonjs/types/Customer.js.map +1 -0
  59. package/lib/commonjs/types/Language.js +2 -0
  60. package/lib/commonjs/types/Language.js.map +1 -0
  61. package/lib/commonjs/types/LocalizationKeys.js +2 -0
  62. package/lib/commonjs/types/LocalizationKeys.js.map +1 -0
  63. package/lib/commonjs/types/MessageResponse.js +2 -0
  64. package/lib/commonjs/types/MessageResponse.js.map +1 -0
  65. package/lib/commonjs/types/Theme.js +29 -0
  66. package/lib/commonjs/types/Theme.js.map +1 -0
  67. package/lib/commonjs/utils/date.js +17 -0
  68. package/lib/commonjs/utils/date.js.map +1 -0
  69. package/lib/module/App.js +55 -0
  70. package/lib/module/App.js.map +1 -0
  71. package/lib/module/__dev__.js +29 -0
  72. package/lib/module/__dev__.js.map +1 -0
  73. package/lib/module/api/api.js +17 -0
  74. package/lib/module/api/api.js.map +1 -0
  75. package/lib/module/api/conversations.js +32 -0
  76. package/lib/module/api/conversations.js.map +1 -0
  77. package/lib/module/api/customers.js +11 -0
  78. package/lib/module/api/customers.js.map +1 -0
  79. package/lib/module/api/index.js +6 -0
  80. package/lib/module/api/index.js.map +1 -0
  81. package/lib/module/api/messages.js +23 -0
  82. package/lib/module/api/messages.js.map +1 -0
  83. package/lib/module/assets/clock.png +0 -0
  84. package/lib/module/assets/double-check.png +0 -0
  85. package/lib/module/assets/down.png +0 -0
  86. package/lib/module/assets/send.png +0 -0
  87. package/lib/module/components/AppText.js +34 -0
  88. package/lib/module/components/AppText.js.map +1 -0
  89. package/lib/module/components/ChatList.js +265 -0
  90. package/lib/module/components/ChatList.js.map +1 -0
  91. package/lib/module/components/CustomerForm.js +209 -0
  92. package/lib/module/components/CustomerForm.js.map +1 -0
  93. package/lib/module/components/EmptyList.js +36 -0
  94. package/lib/module/components/EmptyList.js.map +1 -0
  95. package/lib/module/components/InitFailed.js +47 -0
  96. package/lib/module/components/InitFailed.js.map +1 -0
  97. package/lib/module/components/MessageInput.js +115 -0
  98. package/lib/module/components/MessageInput.js.map +1 -0
  99. package/lib/module/components/MessageItem.js +114 -0
  100. package/lib/module/components/MessageItem.js.map +1 -0
  101. package/lib/module/constants/translations.js +215 -0
  102. package/lib/module/constants/translations.js.map +1 -0
  103. package/lib/module/data/fake/conversations.js +88 -0
  104. package/lib/module/data/fake/conversations.js.map +1 -0
  105. package/lib/module/data/fake/customers.js +20 -0
  106. package/lib/module/data/fake/customers.js.map +1 -0
  107. package/lib/module/data/fake/messages.js +63 -0
  108. package/lib/module/data/fake/messages.js.map +1 -0
  109. package/lib/module/hooks/useLocalize.js +16 -0
  110. package/lib/module/hooks/useLocalize.js.map +1 -0
  111. package/lib/module/hooks/usePolling.js +46 -0
  112. package/lib/module/hooks/usePolling.js.map +1 -0
  113. package/lib/module/hooks/useThemeColors.js +13 -0
  114. package/lib/module/hooks/useThemeColors.js.map +1 -0
  115. package/lib/module/index.js +3 -4
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/module/register.js +17 -0
  118. package/lib/module/register.js.map +1 -0
  119. package/lib/module/store.js +74 -0
  120. package/lib/module/store.js.map +1 -0
  121. package/lib/module/types/ApiOptions.js +2 -0
  122. package/lib/module/types/ApiOptions.js.map +1 -0
  123. package/lib/module/types/Conversation.js +2 -0
  124. package/lib/module/types/Conversation.js.map +1 -0
  125. package/lib/module/types/Customer.js +2 -0
  126. package/lib/module/types/Customer.js.map +1 -0
  127. package/lib/module/types/Language.js +2 -0
  128. package/lib/module/types/Language.js.map +1 -0
  129. package/lib/module/types/LocalizationKeys.js +2 -0
  130. package/lib/module/types/LocalizationKeys.js.map +1 -0
  131. package/lib/module/types/MessageResponse.js +2 -0
  132. package/lib/module/types/MessageResponse.js.map +1 -0
  133. package/lib/module/types/Theme.js +25 -0
  134. package/lib/module/types/Theme.js.map +1 -0
  135. package/lib/module/utils/date.js +12 -0
  136. package/lib/module/utils/date.js.map +1 -0
  137. package/lib/typescript/commonjs/src/App.d.ts +9 -0
  138. package/lib/typescript/commonjs/src/App.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/src/__dev__.d.ts +2 -0
  140. package/lib/typescript/commonjs/src/__dev__.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/src/api/api.d.ts +4 -0
  142. package/lib/typescript/commonjs/src/api/api.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/api/conversations.d.ts +7 -0
  144. package/lib/typescript/commonjs/src/api/conversations.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/api/customers.d.ts +4 -0
  146. package/lib/typescript/commonjs/src/api/customers.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/api/index.d.ts +4 -0
  148. package/lib/typescript/commonjs/src/api/index.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/src/api/messages.d.ts +4 -0
  150. package/lib/typescript/commonjs/src/api/messages.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/components/AppText.d.ts +10 -0
  152. package/lib/typescript/commonjs/src/components/AppText.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/components/ChatList.d.ts +2 -0
  154. package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts +2 -0
  156. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/components/EmptyList.d.ts +2 -0
  158. package/lib/typescript/commonjs/src/components/EmptyList.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/components/InitFailed.d.ts +6 -0
  160. package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/components/MessageInput.d.ts +4 -0
  162. package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/components/MessageItem.d.ts +5 -0
  164. package/lib/typescript/commonjs/src/components/MessageItem.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/constants/translations.d.ts +4 -0
  166. package/lib/typescript/commonjs/src/constants/translations.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts +5 -0
  168. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/data/fake/customers.d.ts +3 -0
  170. package/lib/typescript/commonjs/src/data/fake/customers.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/data/fake/messages.d.ts +3 -0
  172. package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts +3 -0
  174. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts +2 -0
  176. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts +3 -0
  178. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/index.d.ts +4 -1
  180. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/src/register.d.ts +5 -0
  182. package/lib/typescript/commonjs/src/register.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/store.d.ts +35 -0
  184. package/lib/typescript/commonjs/src/store.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts +4 -0
  186. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/types/Conversation.d.ts +26 -0
  188. package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/src/types/Customer.d.ts +30 -0
  190. package/lib/typescript/commonjs/src/types/Customer.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/src/types/Language.d.ts +2 -0
  192. package/lib/typescript/commonjs/src/types/Language.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts +22 -0
  194. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts +59 -0
  196. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/src/types/Theme.d.ts +18 -0
  198. package/lib/typescript/commonjs/src/types/Theme.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/src/utils/date.d.ts +7 -0
  200. package/lib/typescript/commonjs/src/utils/date.d.ts.map +1 -0
  201. package/lib/typescript/module/src/App.d.ts +9 -0
  202. package/lib/typescript/module/src/App.d.ts.map +1 -0
  203. package/lib/typescript/module/src/__dev__.d.ts +2 -0
  204. package/lib/typescript/module/src/__dev__.d.ts.map +1 -0
  205. package/lib/typescript/module/src/api/api.d.ts +4 -0
  206. package/lib/typescript/module/src/api/api.d.ts.map +1 -0
  207. package/lib/typescript/module/src/api/conversations.d.ts +7 -0
  208. package/lib/typescript/module/src/api/conversations.d.ts.map +1 -0
  209. package/lib/typescript/module/src/api/customers.d.ts +4 -0
  210. package/lib/typescript/module/src/api/customers.d.ts.map +1 -0
  211. package/lib/typescript/module/src/api/index.d.ts +4 -0
  212. package/lib/typescript/module/src/api/index.d.ts.map +1 -0
  213. package/lib/typescript/module/src/api/messages.d.ts +4 -0
  214. package/lib/typescript/module/src/api/messages.d.ts.map +1 -0
  215. package/lib/typescript/module/src/components/AppText.d.ts +10 -0
  216. package/lib/typescript/module/src/components/AppText.d.ts.map +1 -0
  217. package/lib/typescript/module/src/components/ChatList.d.ts +2 -0
  218. package/lib/typescript/module/src/components/ChatList.d.ts.map +1 -0
  219. package/lib/typescript/module/src/components/CustomerForm.d.ts +2 -0
  220. package/lib/typescript/module/src/components/CustomerForm.d.ts.map +1 -0
  221. package/lib/typescript/module/src/components/EmptyList.d.ts +2 -0
  222. package/lib/typescript/module/src/components/EmptyList.d.ts.map +1 -0
  223. package/lib/typescript/module/src/components/InitFailed.d.ts +6 -0
  224. package/lib/typescript/module/src/components/InitFailed.d.ts.map +1 -0
  225. package/lib/typescript/module/src/components/MessageInput.d.ts +4 -0
  226. package/lib/typescript/module/src/components/MessageInput.d.ts.map +1 -0
  227. package/lib/typescript/module/src/components/MessageItem.d.ts +5 -0
  228. package/lib/typescript/module/src/components/MessageItem.d.ts.map +1 -0
  229. package/lib/typescript/module/src/constants/translations.d.ts +4 -0
  230. package/lib/typescript/module/src/constants/translations.d.ts.map +1 -0
  231. package/lib/typescript/module/src/data/fake/conversations.d.ts +5 -0
  232. package/lib/typescript/module/src/data/fake/conversations.d.ts.map +1 -0
  233. package/lib/typescript/module/src/data/fake/customers.d.ts +3 -0
  234. package/lib/typescript/module/src/data/fake/customers.d.ts.map +1 -0
  235. package/lib/typescript/module/src/data/fake/messages.d.ts +3 -0
  236. package/lib/typescript/module/src/data/fake/messages.d.ts.map +1 -0
  237. package/lib/typescript/module/src/hooks/useLocalize.d.ts +3 -0
  238. package/lib/typescript/module/src/hooks/useLocalize.d.ts.map +1 -0
  239. package/lib/typescript/module/src/hooks/usePolling.d.ts +2 -0
  240. package/lib/typescript/module/src/hooks/usePolling.d.ts.map +1 -0
  241. package/lib/typescript/module/src/hooks/useThemeColors.d.ts +3 -0
  242. package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +1 -0
  243. package/lib/typescript/module/src/index.d.ts +4 -1
  244. package/lib/typescript/module/src/index.d.ts.map +1 -1
  245. package/lib/typescript/module/src/register.d.ts +5 -0
  246. package/lib/typescript/module/src/register.d.ts.map +1 -0
  247. package/lib/typescript/module/src/store.d.ts +35 -0
  248. package/lib/typescript/module/src/store.d.ts.map +1 -0
  249. package/lib/typescript/module/src/types/ApiOptions.d.ts +4 -0
  250. package/lib/typescript/module/src/types/ApiOptions.d.ts.map +1 -0
  251. package/lib/typescript/module/src/types/Conversation.d.ts +26 -0
  252. package/lib/typescript/module/src/types/Conversation.d.ts.map +1 -0
  253. package/lib/typescript/module/src/types/Customer.d.ts +30 -0
  254. package/lib/typescript/module/src/types/Customer.d.ts.map +1 -0
  255. package/lib/typescript/module/src/types/Language.d.ts +2 -0
  256. package/lib/typescript/module/src/types/Language.d.ts.map +1 -0
  257. package/lib/typescript/module/src/types/LocalizationKeys.d.ts +22 -0
  258. package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +1 -0
  259. package/lib/typescript/module/src/types/MessageResponse.d.ts +59 -0
  260. package/lib/typescript/module/src/types/MessageResponse.d.ts.map +1 -0
  261. package/lib/typescript/module/src/types/Theme.d.ts +18 -0
  262. package/lib/typescript/module/src/types/Theme.d.ts.map +1 -0
  263. package/lib/typescript/module/src/utils/date.d.ts +7 -0
  264. package/lib/typescript/module/src/utils/date.d.ts.map +1 -0
  265. package/package.json +10 -2
  266. package/src/App.tsx +59 -0
  267. package/src/__dev__.ts +22 -0
  268. package/src/api/api.ts +16 -0
  269. package/src/api/conversations.ts +53 -0
  270. package/src/api/customers.ts +16 -0
  271. package/src/api/index.ts +6 -0
  272. package/src/api/messages.ts +33 -0
  273. package/src/assets/clock.png +0 -0
  274. package/src/assets/double-check.png +0 -0
  275. package/src/assets/down.png +0 -0
  276. package/src/assets/send.png +0 -0
  277. package/src/components/AppText.tsx +43 -0
  278. package/src/components/ChatList.tsx +305 -0
  279. package/src/components/CustomerForm.tsx +203 -0
  280. package/src/components/EmptyList.tsx +32 -0
  281. package/src/components/InitFailed.tsx +46 -0
  282. package/src/components/MessageInput.tsx +133 -0
  283. package/src/components/MessageItem.tsx +141 -0
  284. package/src/constants/translations.ts +232 -0
  285. package/src/data/fake/conversations.ts +558 -0
  286. package/src/data/fake/customers.ts +19 -0
  287. package/src/data/fake/messages.ts +64 -0
  288. package/src/hooks/useLocalize.ts +18 -0
  289. package/src/hooks/usePolling.ts +46 -0
  290. package/src/hooks/useThemeColors.ts +10 -0
  291. package/src/index.tsx +4 -5
  292. package/src/register.ts +17 -0
  293. package/src/store.ts +85 -0
  294. package/src/types/ApiOptions.ts +4 -0
  295. package/src/types/Conversation.ts +29 -0
  296. package/src/types/Customer.ts +31 -0
  297. package/src/types/Language.ts +11 -0
  298. package/src/types/LocalizationKeys.ts +21 -0
  299. package/src/types/MessageResponse.ts +58 -0
  300. package/src/types/Theme.ts +40 -0
  301. package/src/utils/date.ts +11 -0
  302. package/.editorconfig +0 -15
  303. package/.gitattributes +0 -3
  304. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -68
  305. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  306. package/.github/actions/setup/action.yml +0 -36
  307. package/.github/workflows/ci.yml +0 -165
  308. package/.gitignore +0 -86
  309. package/.idea/.gitignore +0 -8
  310. package/.idea/codeStyles/Project.xml +0 -59
  311. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  312. package/.idea/comnyx-rn.iml +0 -12
  313. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  314. package/.idea/modules.xml +0 -8
  315. package/.idea/prettier.xml +0 -6
  316. package/.idea/vcs.xml +0 -6
  317. package/.idea/workspace.xml +0 -71
  318. package/.nvmrc +0 -1
  319. package/.watchmanconfig +0 -1
  320. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  321. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  322. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  323. package/.yarnrc.yml +0 -10
  324. package/CODE_OF_CONDUCT.md +0 -133
  325. package/CONTRIBUTING.md +0 -130
  326. package/babel.config.js +0 -3
  327. package/example/.bundle/config +0 -2
  328. package/example/.watchmanconfig +0 -1
  329. package/example/Gemfile +0 -10
  330. package/example/README.md +0 -97
  331. package/example/android/app/build.gradle +0 -133
  332. package/example/android/app/debug.keystore +0 -0
  333. package/example/android/app/proguard-rules.pro +0 -10
  334. package/example/android/app/src/debug/AndroidManifest.xml +0 -9
  335. package/example/android/app/src/main/AndroidManifest.xml +0 -26
  336. package/example/android/app/src/main/java/comnyx/example/MainActivity.kt +0 -22
  337. package/example/android/app/src/main/java/comnyx/example/MainApplication.kt +0 -44
  338. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  339. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  340. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  341. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  342. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  343. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  344. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  345. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  346. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  347. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  348. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  349. package/example/android/app/src/main/res/values/strings.xml +0 -3
  350. package/example/android/app/src/main/res/values/styles.xml +0 -9
  351. package/example/android/build.gradle +0 -21
  352. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  353. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  354. package/example/android/gradle.properties +0 -39
  355. package/example/android/gradlew +0 -251
  356. package/example/android/gradlew.bat +0 -94
  357. package/example/android/settings.gradle +0 -6
  358. package/example/app.json +0 -4
  359. package/example/babel.config.js +0 -12
  360. package/example/index.js +0 -5
  361. package/example/ios/.xcode.env +0 -11
  362. package/example/ios/ComnyxExample/AppDelegate.swift +0 -30
  363. package/example/ios/ComnyxExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  364. package/example/ios/ComnyxExample/Images.xcassets/Contents.json +0 -6
  365. package/example/ios/ComnyxExample/Info.plist +0 -52
  366. package/example/ios/ComnyxExample/LaunchScreen.storyboard +0 -47
  367. package/example/ios/ComnyxExample/PrivacyInfo.xcprivacy +0 -37
  368. package/example/ios/ComnyxExample.xcodeproj/project.pbxproj +0 -505
  369. package/example/ios/ComnyxExample.xcodeproj/xcshareddata/xcschemes/ComnyxExample.xcscheme +0 -88
  370. package/example/ios/Podfile +0 -43
  371. package/example/jest.config.js +0 -3
  372. package/example/metro.config.js +0 -18
  373. package/example/package.json +0 -31
  374. package/example/react-native.config.js +0 -21
  375. package/example/src/App.tsx +0 -20
  376. package/lefthook.yml +0 -14
  377. package/lib/typescript/commonjs/src/__tests__/index.test.d.ts +0 -1
  378. package/lib/typescript/commonjs/src/__tests__/index.test.d.ts.map +0 -1
  379. package/lib/typescript/module/src/__tests__/index.test.d.ts +0 -1
  380. package/lib/typescript/module/src/__tests__/index.test.d.ts.map +0 -1
  381. package/src/__tests__/index.test.tsx +0 -1
  382. package/tsconfig.build.json +0 -4
  383. package/tsconfig.json +0 -30
  384. package/turbo.json +0 -36
  385. package/yarn.lock +0 -9251
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1210"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "ComnyxExample.app"
19
- BlueprintName = "ComnyxExample"
20
- ReferencedContainer = "container:ComnyxExample.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "ComnyxExampleTests.xctest"
37
- BlueprintName = "ComnyxExampleTests"
38
- ReferencedContainer = "container:ComnyxExample.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "ComnyxExample.app"
59
- BlueprintName = "ComnyxExample"
60
- ReferencedContainer = "container:ComnyxExample.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "ComnyxExample.app"
76
- BlueprintName = "ComnyxExample"
77
- ReferencedContainer = "container:ComnyxExample.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,43 +0,0 @@
1
- ENV['RCT_NEW_ARCH_ENABLED'] = '1'
2
-
3
- # Resolve react_native_pods.rb with node to allow for hoisting
4
- require Pod::Executable.execute_command('node', ['-p',
5
- 'require.resolve(
6
- "react-native/scripts/react_native_pods.rb",
7
- {paths: [process.argv[1]]},
8
- )', __dir__]).strip
9
-
10
- platform :ios, min_ios_version_supported
11
- prepare_react_native_project!
12
-
13
- linkage = ENV['USE_FRAMEWORKS']
14
- if linkage != nil
15
- Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
16
- use_frameworks! :linkage => linkage.to_sym
17
- end
18
-
19
- target 'ComnyxExample' do
20
- config = use_native_modules!
21
-
22
- use_react_native!(
23
- :path => config[:reactNativePath],
24
- # An absolute path to your application root.
25
- :app_path => "#{Pod::Config.instance.installation_root}/.."
26
- )
27
-
28
-
29
- # Run Codegen during development for the example app.
30
- pre_install do |installer|
31
- system("cd ../../ && npx bob build --target codegen")
32
- end
33
-
34
- post_install do |installer|
35
- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
36
- react_native_post_install(
37
- installer,
38
- config[:reactNativePath],
39
- :mac_catalyst_enabled => false,
40
- # :ccache_enabled => true
41
- )
42
- end
43
- end
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- preset: 'react-native',
3
- };
@@ -1,18 +0,0 @@
1
- const path = require('path');
2
- const { getDefaultConfig } = require('@react-native/metro-config');
3
- const { getConfig } = require('react-native-builder-bob/metro-config');
4
- const pkg = require('../package.json');
5
-
6
- const root = path.resolve(__dirname, '..');
7
-
8
- /**
9
- * Metro configuration
10
- * https://facebook.github.io/metro/docs/configuration
11
- *
12
- * @type {import('metro-config').MetroConfig}
13
- */
14
- module.exports = getConfig(getDefaultConfig(__dirname), {
15
- root,
16
- pkg,
17
- project: __dirname,
18
- });
@@ -1,31 +0,0 @@
1
- {
2
- "name": "react-native-comnyx-example",
3
- "version": "0.0.1",
4
- "private": true,
5
- "scripts": {
6
- "android": "react-native run-android",
7
- "ios": "react-native run-ios",
8
- "start": "react-native start",
9
- "build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"",
10
- "build:ios": "react-native build-ios --scheme ComnyxExample --mode Debug --extra-params \"-sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO\""
11
- },
12
- "dependencies": {
13
- "react": "19.0.0",
14
- "react-native": "0.78.1"
15
- },
16
- "devDependencies": {
17
- "@babel/core": "^7.25.2",
18
- "@babel/preset-env": "^7.25.3",
19
- "@babel/runtime": "^7.25.0",
20
- "@react-native-community/cli": "15.0.1",
21
- "@react-native-community/cli-platform-android": "15.0.1",
22
- "@react-native-community/cli-platform-ios": "15.0.1",
23
- "@react-native/babel-preset": "0.78.1",
24
- "@react-native/metro-config": "0.78.1",
25
- "@react-native/typescript-config": "0.78.1",
26
- "react-native-builder-bob": "^0.38.3"
27
- },
28
- "engines": {
29
- "node": ">=18"
30
- }
31
- }
@@ -1,21 +0,0 @@
1
- const path = require('path');
2
- const pkg = require('../package.json');
3
-
4
- module.exports = {
5
- project: {
6
- ios: {
7
- automaticPodsInstallation: true,
8
- },
9
- },
10
- dependencies: {
11
- [pkg.name]: {
12
- root: path.join(__dirname, '..'),
13
- platforms: {
14
- // Codegen script incorrectly fails without this
15
- // So we explicitly specify the platforms with empty object
16
- ios: {},
17
- android: {},
18
- },
19
- },
20
- },
21
- };
@@ -1,20 +0,0 @@
1
- import { Text, View, StyleSheet } from 'react-native';
2
- import { multiply } from 'react-native-comnyx';
3
-
4
- const result = multiply(3, 7);
5
-
6
- export default function App() {
7
- return (
8
- <View style={styles.container}>
9
- <Text>Result: {result}</Text>
10
- </View>
11
- );
12
- }
13
-
14
- const styles = StyleSheet.create({
15
- container: {
16
- flex: 1,
17
- alignItems: 'center',
18
- justifyContent: 'center',
19
- },
20
- });
package/lefthook.yml DELETED
@@ -1,14 +0,0 @@
1
- pre-commit:
2
- parallel: true
3
- commands:
4
- lint:
5
- glob: "*.{js,ts,jsx,tsx}"
6
- run: npx eslint {staged_files}
7
- types:
8
- glob: "*.{js,ts, jsx, tsx}"
9
- run: npx tsc
10
- commit-msg:
11
- parallel: true
12
- commands:
13
- commitlint:
14
- run: npx commitlint --edit
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/index.test.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/index.test.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- it.todo('write a test');
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "exclude": ["example", "lib"]
4
- }
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": ".",
4
- "paths": {
5
- "react-native-comnyx": ["./src/index"]
6
- },
7
- "allowUnreachableCode": false,
8
- "allowUnusedLabels": false,
9
- "esModuleInterop": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "jsx": "react-jsx",
12
- "lib": ["ESNext"],
13
- "module": "ESNext",
14
- "moduleResolution": "bundler",
15
- "noEmit": true,
16
- "noFallthroughCasesInSwitch": true,
17
- "noImplicitReturns": true,
18
- "noImplicitUseStrict": false,
19
- "noStrictGenericChecks": false,
20
- "noUncheckedIndexedAccess": true,
21
- "noUnusedLocals": true,
22
- "noUnusedParameters": true,
23
- "resolveJsonModule": true,
24
- "resolvePackageJsonImports": false,
25
- "skipLibCheck": true,
26
- "strict": true,
27
- "target": "ESNext",
28
- "verbatimModuleSyntax": true
29
- }
30
- }
package/turbo.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "https://turbo.build/schema.json",
3
- "pipeline": {
4
- "build:android": {
5
- "env": ["ORG_GRADLE_PROJECT_newArchEnabled"],
6
- "inputs": [
7
- "package.json",
8
- "android",
9
- "!android/build",
10
- "src/*.ts",
11
- "src/*.tsx",
12
- "example/package.json",
13
- "example/android",
14
- "!example/android/.gradle",
15
- "!example/android/build",
16
- "!example/android/app/build"
17
- ],
18
- "outputs": []
19
- },
20
- "build:ios": {
21
- "env": ["RCT_NEW_ARCH_ENABLED"],
22
- "inputs": [
23
- "package.json",
24
- "*.podspec",
25
- "ios",
26
- "src/*.ts",
27
- "src/*.tsx",
28
- "example/package.json",
29
- "example/ios",
30
- "!example/ios/build",
31
- "!example/ios/Pods"
32
- ],
33
- "outputs": []
34
- }
35
- }
36
- }