@fadyshawky/react-native-magic 1.0.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 (165) hide show
  1. package/.vscode/settings.json +7 -0
  2. package/README.md +269 -0
  3. package/package.json +36 -0
  4. package/template/.bundle/config +2 -0
  5. package/template/.env.development +5 -0
  6. package/template/.env.production +5 -0
  7. package/template/.env.staging +5 -0
  8. package/template/.eslintrc.js +4 -0
  9. package/template/.prettierrc.js +7 -0
  10. package/template/.watchmanconfig +1 -0
  11. package/template/App.tsx +34 -0
  12. package/template/Gemfile +9 -0
  13. package/template/Gemfile.lock +117 -0
  14. package/template/README.md +79 -0
  15. package/template/__tests__/App.test.tsx +17 -0
  16. package/template/android/app/build.gradle +128 -0
  17. package/template/android/app/debug.keystore +0 -0
  18. package/template/android/app/proguard-rules.pro +10 -0
  19. package/template/android/app/src/debug/AndroidManifest.xml +9 -0
  20. package/template/android/app/src/main/AndroidManifest.xml +26 -0
  21. package/template/android/app/src/main/java/com/reactnativemagic/MainActivity.kt +22 -0
  22. package/template/android/app/src/main/java/com/reactnativemagic/MainApplication.kt +44 -0
  23. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  24. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  25. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  26. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  27. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  28. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  29. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  30. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  31. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  32. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  33. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  34. package/template/android/app/src/main/res/values/strings.xml +3 -0
  35. package/template/android/app/src/main/res/values/styles.xml +9 -0
  36. package/template/android/build.gradle +21 -0
  37. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  38. package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  39. package/template/android/gradle.properties +39 -0
  40. package/template/android/gradlew +252 -0
  41. package/template/android/gradlew.bat +94 -0
  42. package/template/android/settings.gradle +6 -0
  43. package/template/app.json +4 -0
  44. package/template/babel.config.js +3 -0
  45. package/template/index.js +9 -0
  46. package/template/install-dev.sh +1 -0
  47. package/template/install.sh +1 -0
  48. package/template/ios/.xcode.env +11 -0
  49. package/template/ios/Podfile +42 -0
  50. package/template/ios/Podfile.lock +2461 -0
  51. package/template/ios/reactnativemagic/AppDelegate.h +6 -0
  52. package/template/ios/reactnativemagic/AppDelegate.mm +31 -0
  53. package/template/ios/reactnativemagic/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  54. package/template/ios/reactnativemagic/Images.xcassets/Contents.json +6 -0
  55. package/template/ios/reactnativemagic/Info.plist +52 -0
  56. package/template/ios/reactnativemagic/LaunchScreen.storyboard +47 -0
  57. package/template/ios/reactnativemagic/PrivacyInfo.xcprivacy +46 -0
  58. package/template/ios/reactnativemagic/main.m +10 -0
  59. package/template/ios/reactnativemagic copy-Info.plist +52 -0
  60. package/template/ios/reactnativemagic.xcodeproj/project.pbxproj +836 -0
  61. package/template/ios/reactnativemagic.xcodeproj/xcshareddata/xcschemes/reactnativemagic.xcscheme +88 -0
  62. package/template/ios/reactnativemagic.xcworkspace/contents.xcworkspacedata +10 -0
  63. package/template/ios/reactnativemagic.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  64. package/template/ios/reactnativemagicTests/Info.plist +24 -0
  65. package/template/ios/reactnativemagicTests/reactnativemagicTests.m +66 -0
  66. package/template/ios/tmp.xcconfig +2 -0
  67. package/template/jest.config.js +3 -0
  68. package/template/metro.config.js +11 -0
  69. package/template/package-lock.json +18315 -0
  70. package/template/package.json +125 -0
  71. package/template/resources/symbols/SFSymbols.ts +2614 -0
  72. package/template/src/common/ImageResources.g.ts +14 -0
  73. package/template/src/common/components/Background.tsx +34 -0
  74. package/template/src/common/components/EmptyView.tsx +31 -0
  75. package/template/src/common/components/FlatListWrapper.tsx +66 -0
  76. package/template/src/common/components/IconPlatform.tsx +17 -0
  77. package/template/src/common/components/ImageCropPickerButton.tsx +108 -0
  78. package/template/src/common/components/LoadingComponent.tsx +16 -0
  79. package/template/src/common/components/PhotoTakingButton.tsx +99 -0
  80. package/template/src/common/components/PrimaryButton.tsx +305 -0
  81. package/template/src/common/components/PrimaryTextInput.tsx +287 -0
  82. package/template/src/common/components/RadioButton.tsx +73 -0
  83. package/template/src/common/components/RadioIcon.tsx +63 -0
  84. package/template/src/common/components/Separator.tsx +39 -0
  85. package/template/src/common/components/Svg.tsx +25 -0
  86. package/template/src/common/components/TouchablePlatform.tsx +70 -0
  87. package/template/src/common/components/TryAgain.tsx +56 -0
  88. package/template/src/common/helpers/arrayHelpers.ts +29 -0
  89. package/template/src/common/helpers/calculatePage.ts +16 -0
  90. package/template/src/common/helpers/colorHelpers.ts +34 -0
  91. package/template/src/common/helpers/defaultKeyIdExtractor.ts +5 -0
  92. package/template/src/common/helpers/dialogsHelpers.ts +66 -0
  93. package/template/src/common/helpers/imageHelpers.ts +5 -0
  94. package/template/src/common/helpers/inAppReviewHelper.ts +31 -0
  95. package/template/src/common/helpers/netInfoHelpers.ts +42 -0
  96. package/template/src/common/helpers/orientationHelpers.ts +25 -0
  97. package/template/src/common/helpers/regexHelpers.ts +7 -0
  98. package/template/src/common/helpers/shareHelpers.ts +47 -0
  99. package/template/src/common/helpers/stringsHelpers.ts +15 -0
  100. package/template/src/common/hooks/useBackHandler.ts +10 -0
  101. package/template/src/common/hooks/useDebounce.ts +17 -0
  102. package/template/src/common/hooks/useEventRegister.ts +50 -0
  103. package/template/src/common/hooks/useFlatListActions.ts +31 -0
  104. package/template/src/common/hooks/usePrevious.ts +11 -0
  105. package/template/src/common/hooks/useWhyDidYouUpdate.ts +27 -0
  106. package/template/src/common/localization/dateFormatter.ts +108 -0
  107. package/template/src/common/localization/intlFormatter.ts +37 -0
  108. package/template/src/common/localization/localization.ts +51 -0
  109. package/template/src/common/localization/translations/commonLocalization.ts +29 -0
  110. package/template/src/common/localization/translations/emptyLocalization.ts +6 -0
  111. package/template/src/common/localization/translations/errorsLocalization.ts +22 -0
  112. package/template/src/common/localization/translations/homeLocalization.ts +5 -0
  113. package/template/src/common/localization/translations/loginLocalization.ts +14 -0
  114. package/template/src/common/localization/translations/onboardingLocalization.ts +13 -0
  115. package/template/src/common/localization/translations/pagesLocalization.ts +14 -0
  116. package/template/src/common/localization/translations/profileLocalization.ts +6 -0
  117. package/template/src/common/urls/baseUrlOpener.ts +31 -0
  118. package/template/src/common/urls/emailUrl.ts +20 -0
  119. package/template/src/common/urls/httpUrl.ts +19 -0
  120. package/template/src/common/urls/mapUrl.ts +22 -0
  121. package/template/src/common/urls/phoneUrl.ts +16 -0
  122. package/template/src/common/utils/createPerfectSize.ts +15 -0
  123. package/template/src/common/utils/listHandlers.ts +30 -0
  124. package/template/src/common/utils/newState.ts +5 -0
  125. package/template/src/common/utils/serializeQueryParams.ts +10 -0
  126. package/template/src/common/validations/authValidations.ts +15 -0
  127. package/template/src/common/validations/commonValidations.ts +39 -0
  128. package/template/src/common/validations/errorValidations.ts +72 -0
  129. package/template/src/common/validations/hooks/useDatesError.ts +40 -0
  130. package/template/src/common/validations/hooks/useInputError.ts +30 -0
  131. package/template/src/common/validations/profileValidations.ts +30 -0
  132. package/template/src/common/validations/validationConstants.ts +20 -0
  133. package/template/src/core/api/responseHandlers.ts +43 -0
  134. package/template/src/core/api/serverHeaders.ts +39 -0
  135. package/template/src/core/store/app/appSlice.ts +12 -0
  136. package/template/src/core/store/app/appState.ts +3 -0
  137. package/template/src/core/store/reduxHelpers.ts +11 -0
  138. package/template/src/core/store/rootReducer.ts +10 -0
  139. package/template/src/core/store/store.tsx +41 -0
  140. package/template/src/core/store/user/userActions.ts +31 -0
  141. package/template/src/core/store/user/userSlice.ts +62 -0
  142. package/template/src/core/store/user/userState.ts +44 -0
  143. package/template/src/core/theme/colors.ts +117 -0
  144. package/template/src/core/theme/commonConsts.ts +45 -0
  145. package/template/src/core/theme/commonSizes.ts +70 -0
  146. package/template/src/core/theme/commonStyles.ts +228 -0
  147. package/template/src/core/theme/fonts.ts +12 -0
  148. package/template/src/navigation/AuthStack.tsx +39 -0
  149. package/template/src/navigation/HeaderComponents.tsx +104 -0
  150. package/template/src/navigation/MainNavigation.tsx +55 -0
  151. package/template/src/navigation/MainStack.tsx +99 -0
  152. package/template/src/navigation/RootNavigation.tsx +33 -0
  153. package/template/src/navigation/TabBar.tsx +94 -0
  154. package/template/src/navigation/TopTabBar.tsx +75 -0
  155. package/template/src/navigation/types.ts +5 -0
  156. package/template/src/screens/Login/Login.tsx +114 -0
  157. package/template/src/screens/Settings/Settings.tsx +5 -0
  158. package/template/src/screens/main/Main.tsx +5 -0
  159. package/template/src/screens/profile/Profile.tsx +5 -0
  160. package/template/src/screens/splash/Splash.tsx +19 -0
  161. package/template/src/sheetManager/sheets.tsx +14 -0
  162. package/template/tsconfig.json +3 -0
  163. package/template/types/index.ts +108 -0
  164. package/template/types/react-native-config.d.ts +19 -0
  165. package/template.config.js +4 -0
@@ -0,0 +1,125 @@
1
+ {
2
+ "name": "reactnativemagic",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "scripts": {
6
+ "android": "react-native run-android",
7
+ "android:staging": "react-native run-android --variant=stagingdebug",
8
+ "android:staging-release": "react-native run-android --variant=stagingrelease",
9
+ "android:dev": "react-native run-android --variant=developmentdebug",
10
+ "android:dev-release": "react-native run-android --variant=developmentrelease",
11
+ "android:prod": "react-native run-android --variant=productiondebug",
12
+ "android:prod-release": "react-native run-android --variant=productionrelease",
13
+ "ios": "react-native run-ios",
14
+ "lint": "eslint .",
15
+ "start": "react-native start",
16
+ "test": "jest"
17
+ },
18
+ "dependencies": {
19
+ "@gorhom/bottom-sheet": "^5.0.6",
20
+ "@react-native-async-storage/async-storage": "^2.1.0",
21
+ "@react-native-camera-roll/camera-roll": "^7.9.0",
22
+ "@react-native-community/datetimepicker": "^8.2.0",
23
+ "@react-native-community/image-editor": "^4.2.1",
24
+ "@react-native-community/netinfo": "^11.4.1",
25
+ "@react-native-community/slider": "^4.5.5",
26
+ "@react-navigation/bottom-tabs": "^7.2.0",
27
+ "@react-navigation/drawer": "^7.1.1",
28
+ "@react-navigation/material-top-tabs": "^7.1.0",
29
+ "@react-navigation/native": "^7.0.14",
30
+ "@react-navigation/native-stack": "^7.2.0",
31
+ "@reduxjs/toolkit": "^2.5.0",
32
+ "@shopify/flash-list": "^1.7.2",
33
+ "@types/intl": "^1.2.2",
34
+ "@types/jest": "^29.5.14",
35
+ "@types/lodash": "^4.17.13",
36
+ "@types/react-native-vector-icons": "^6.4.18",
37
+ "@types/react-redux": "^7.1.34",
38
+ "@typescript-eslint/eslint-plugin": "^8.18.1",
39
+ "@typescript-eslint/parser": "^8.18.1",
40
+ "axios": "^1.7.9",
41
+ "babel-plugin-transform-remove-console": "^6.9.4",
42
+ "dayjs": "^1.11.13",
43
+ "detox": "^20.28.0",
44
+ "eslint-config-react-strong": "^2.4.0",
45
+ "eslint-import-resolver-typescript": "^3.7.0",
46
+ "eslint-plugin-import": "^2.31.0",
47
+ "eslint-plugin-jest": "^28.10.0",
48
+ "eslint-plugin-react": "^7.37.2",
49
+ "eslint-plugin-react-hooks": "^5.1.0",
50
+ "eslint-plugin-react-native": "^4.1.0",
51
+ "eslint-plugin-unused-imports": "^4.1.4",
52
+ "husky": "^9.1.7",
53
+ "intl": "^1.2.5",
54
+ "lint-staged": "^15.2.11",
55
+ "lodash": "^4.17.21",
56
+ "metro-react-native-babel-preset": "^0.77.0",
57
+ "mime": "^4.0.6",
58
+ "moment": "^2.30.1",
59
+ "patch-package": "^8.0.0",
60
+ "react": "^18.3.1",
61
+ "react-dom": "^19.0.0",
62
+ "react-native": "^0.76.5",
63
+ "react-native-actions-sheet": "^0.9.7",
64
+ "react-native-animated-pagination-dots": "^0.1.73",
65
+ "react-native-bundle-visualizer": "^3.1.3",
66
+ "react-native-calendars": "^1.1307.0",
67
+ "react-native-camera": "^4.2.1",
68
+ "react-native-config": "^1.5.3",
69
+ "react-native-config-node": "^0.0.3",
70
+ "react-native-dev-menu": "^4.1.1",
71
+ "react-native-device-info": "^14.0.2",
72
+ "react-native-dropdown-select-list": "^2.0.5",
73
+ "react-native-gesture-handler": "^2.21.2",
74
+ "react-native-image-crop-picker": "^0.41.6",
75
+ "react-native-image-resource-generator": "^1.0.2",
76
+ "react-native-in-app-review": "^4.3.3",
77
+ "react-native-keyboard-aware-scroll-view": "^0.9.5",
78
+ "react-native-localization": "^2.3.2",
79
+ "react-native-mask-input": "^1.2.3",
80
+ "react-native-pager-view": "^6.6.1",
81
+ "react-native-permissions": "^5.2.1",
82
+ "react-native-reanimated": "^3.16.6",
83
+ "react-native-reanimated-carousel": "^3.5.1",
84
+ "react-native-safe-area-context": "^5.0.0",
85
+ "react-native-screens": "^4.4.0",
86
+ "react-native-sfsymbols": "^1.2.2",
87
+ "react-native-share": "^12.0.3",
88
+ "react-native-size-matters": "^0.4.2",
89
+ "react-native-snackbar": "^2.8.0",
90
+ "react-native-svg": "^15.10.1",
91
+ "react-native-tab-view": "^4.0.5",
92
+ "react-native-vector-icons": "^10.2.0",
93
+ "react-native-version": "^4.0.0",
94
+ "react-native-vision-camera": "^4.6.3",
95
+ "react-native-webview": "^13.12.5",
96
+ "react-redux": "^9.2.0",
97
+ "redux": "^5.0.1",
98
+ "redux-persist": "^6.0.0",
99
+ "redux-persist-transform-filter": "^0.0.22",
100
+ "rn-fetch-blob": "^0.12.0"
101
+ },
102
+ "devDependencies": {
103
+ "@babel/core": "^7.25.2",
104
+ "@babel/preset-env": "^7.26.0",
105
+ "@babel/runtime": "^7.26.0",
106
+ "@react-native-community/cli": "15.0.1",
107
+ "@react-native-community/cli-platform-android": "15.0.1",
108
+ "@react-native-community/cli-platform-ios": "15.0.1",
109
+ "@react-native/babel-preset": "^0.76.5",
110
+ "@react-native/eslint-config": "^0.76.5",
111
+ "@react-native/metro-config": "^0.76.5",
112
+ "@react-native/typescript-config": "^0.76.5",
113
+ "@types/react": "^18.3.18",
114
+ "@types/react-test-renderer": "^18.3.1",
115
+ "babel-jest": "^29.7.0",
116
+ "eslint": "^8.57.1",
117
+ "jest": "^29.7.0",
118
+ "prettier": "^2.8.8",
119
+ "react-test-renderer": "^18.3.1",
120
+ "typescript": "^5.0.4"
121
+ },
122
+ "engines": {
123
+ "node": ">=18"
124
+ }
125
+ }