@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.
- package/.vscode/settings.json +7 -0
- package/README.md +269 -0
- package/package.json +36 -0
- package/template/.bundle/config +2 -0
- package/template/.env.development +5 -0
- package/template/.env.production +5 -0
- package/template/.env.staging +5 -0
- package/template/.eslintrc.js +4 -0
- package/template/.prettierrc.js +7 -0
- package/template/.watchmanconfig +1 -0
- package/template/App.tsx +34 -0
- package/template/Gemfile +9 -0
- package/template/Gemfile.lock +117 -0
- package/template/README.md +79 -0
- package/template/__tests__/App.test.tsx +17 -0
- package/template/android/app/build.gradle +128 -0
- package/template/android/app/debug.keystore +0 -0
- package/template/android/app/proguard-rules.pro +10 -0
- package/template/android/app/src/debug/AndroidManifest.xml +9 -0
- package/template/android/app/src/main/AndroidManifest.xml +26 -0
- package/template/android/app/src/main/java/com/reactnativemagic/MainActivity.kt +22 -0
- package/template/android/app/src/main/java/com/reactnativemagic/MainApplication.kt +44 -0
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/values/strings.xml +3 -0
- package/template/android/app/src/main/res/values/styles.xml +9 -0
- package/template/android/build.gradle +21 -0
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/template/android/gradle.properties +39 -0
- package/template/android/gradlew +252 -0
- package/template/android/gradlew.bat +94 -0
- package/template/android/settings.gradle +6 -0
- package/template/app.json +4 -0
- package/template/babel.config.js +3 -0
- package/template/index.js +9 -0
- package/template/install-dev.sh +1 -0
- package/template/install.sh +1 -0
- package/template/ios/.xcode.env +11 -0
- package/template/ios/Podfile +42 -0
- package/template/ios/Podfile.lock +2461 -0
- package/template/ios/reactnativemagic/AppDelegate.h +6 -0
- package/template/ios/reactnativemagic/AppDelegate.mm +31 -0
- package/template/ios/reactnativemagic/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/template/ios/reactnativemagic/Images.xcassets/Contents.json +6 -0
- package/template/ios/reactnativemagic/Info.plist +52 -0
- package/template/ios/reactnativemagic/LaunchScreen.storyboard +47 -0
- package/template/ios/reactnativemagic/PrivacyInfo.xcprivacy +46 -0
- package/template/ios/reactnativemagic/main.m +10 -0
- package/template/ios/reactnativemagic copy-Info.plist +52 -0
- package/template/ios/reactnativemagic.xcodeproj/project.pbxproj +836 -0
- package/template/ios/reactnativemagic.xcodeproj/xcshareddata/xcschemes/reactnativemagic.xcscheme +88 -0
- package/template/ios/reactnativemagic.xcworkspace/contents.xcworkspacedata +10 -0
- package/template/ios/reactnativemagic.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/template/ios/reactnativemagicTests/Info.plist +24 -0
- package/template/ios/reactnativemagicTests/reactnativemagicTests.m +66 -0
- package/template/ios/tmp.xcconfig +2 -0
- package/template/jest.config.js +3 -0
- package/template/metro.config.js +11 -0
- package/template/package-lock.json +18315 -0
- package/template/package.json +125 -0
- package/template/resources/symbols/SFSymbols.ts +2614 -0
- package/template/src/common/ImageResources.g.ts +14 -0
- package/template/src/common/components/Background.tsx +34 -0
- package/template/src/common/components/EmptyView.tsx +31 -0
- package/template/src/common/components/FlatListWrapper.tsx +66 -0
- package/template/src/common/components/IconPlatform.tsx +17 -0
- package/template/src/common/components/ImageCropPickerButton.tsx +108 -0
- package/template/src/common/components/LoadingComponent.tsx +16 -0
- package/template/src/common/components/PhotoTakingButton.tsx +99 -0
- package/template/src/common/components/PrimaryButton.tsx +305 -0
- package/template/src/common/components/PrimaryTextInput.tsx +287 -0
- package/template/src/common/components/RadioButton.tsx +73 -0
- package/template/src/common/components/RadioIcon.tsx +63 -0
- package/template/src/common/components/Separator.tsx +39 -0
- package/template/src/common/components/Svg.tsx +25 -0
- package/template/src/common/components/TouchablePlatform.tsx +70 -0
- package/template/src/common/components/TryAgain.tsx +56 -0
- package/template/src/common/helpers/arrayHelpers.ts +29 -0
- package/template/src/common/helpers/calculatePage.ts +16 -0
- package/template/src/common/helpers/colorHelpers.ts +34 -0
- package/template/src/common/helpers/defaultKeyIdExtractor.ts +5 -0
- package/template/src/common/helpers/dialogsHelpers.ts +66 -0
- package/template/src/common/helpers/imageHelpers.ts +5 -0
- package/template/src/common/helpers/inAppReviewHelper.ts +31 -0
- package/template/src/common/helpers/netInfoHelpers.ts +42 -0
- package/template/src/common/helpers/orientationHelpers.ts +25 -0
- package/template/src/common/helpers/regexHelpers.ts +7 -0
- package/template/src/common/helpers/shareHelpers.ts +47 -0
- package/template/src/common/helpers/stringsHelpers.ts +15 -0
- package/template/src/common/hooks/useBackHandler.ts +10 -0
- package/template/src/common/hooks/useDebounce.ts +17 -0
- package/template/src/common/hooks/useEventRegister.ts +50 -0
- package/template/src/common/hooks/useFlatListActions.ts +31 -0
- package/template/src/common/hooks/usePrevious.ts +11 -0
- package/template/src/common/hooks/useWhyDidYouUpdate.ts +27 -0
- package/template/src/common/localization/dateFormatter.ts +108 -0
- package/template/src/common/localization/intlFormatter.ts +37 -0
- package/template/src/common/localization/localization.ts +51 -0
- package/template/src/common/localization/translations/commonLocalization.ts +29 -0
- package/template/src/common/localization/translations/emptyLocalization.ts +6 -0
- package/template/src/common/localization/translations/errorsLocalization.ts +22 -0
- package/template/src/common/localization/translations/homeLocalization.ts +5 -0
- package/template/src/common/localization/translations/loginLocalization.ts +14 -0
- package/template/src/common/localization/translations/onboardingLocalization.ts +13 -0
- package/template/src/common/localization/translations/pagesLocalization.ts +14 -0
- package/template/src/common/localization/translations/profileLocalization.ts +6 -0
- package/template/src/common/urls/baseUrlOpener.ts +31 -0
- package/template/src/common/urls/emailUrl.ts +20 -0
- package/template/src/common/urls/httpUrl.ts +19 -0
- package/template/src/common/urls/mapUrl.ts +22 -0
- package/template/src/common/urls/phoneUrl.ts +16 -0
- package/template/src/common/utils/createPerfectSize.ts +15 -0
- package/template/src/common/utils/listHandlers.ts +30 -0
- package/template/src/common/utils/newState.ts +5 -0
- package/template/src/common/utils/serializeQueryParams.ts +10 -0
- package/template/src/common/validations/authValidations.ts +15 -0
- package/template/src/common/validations/commonValidations.ts +39 -0
- package/template/src/common/validations/errorValidations.ts +72 -0
- package/template/src/common/validations/hooks/useDatesError.ts +40 -0
- package/template/src/common/validations/hooks/useInputError.ts +30 -0
- package/template/src/common/validations/profileValidations.ts +30 -0
- package/template/src/common/validations/validationConstants.ts +20 -0
- package/template/src/core/api/responseHandlers.ts +43 -0
- package/template/src/core/api/serverHeaders.ts +39 -0
- package/template/src/core/store/app/appSlice.ts +12 -0
- package/template/src/core/store/app/appState.ts +3 -0
- package/template/src/core/store/reduxHelpers.ts +11 -0
- package/template/src/core/store/rootReducer.ts +10 -0
- package/template/src/core/store/store.tsx +41 -0
- package/template/src/core/store/user/userActions.ts +31 -0
- package/template/src/core/store/user/userSlice.ts +62 -0
- package/template/src/core/store/user/userState.ts +44 -0
- package/template/src/core/theme/colors.ts +117 -0
- package/template/src/core/theme/commonConsts.ts +45 -0
- package/template/src/core/theme/commonSizes.ts +70 -0
- package/template/src/core/theme/commonStyles.ts +228 -0
- package/template/src/core/theme/fonts.ts +12 -0
- package/template/src/navigation/AuthStack.tsx +39 -0
- package/template/src/navigation/HeaderComponents.tsx +104 -0
- package/template/src/navigation/MainNavigation.tsx +55 -0
- package/template/src/navigation/MainStack.tsx +99 -0
- package/template/src/navigation/RootNavigation.tsx +33 -0
- package/template/src/navigation/TabBar.tsx +94 -0
- package/template/src/navigation/TopTabBar.tsx +75 -0
- package/template/src/navigation/types.ts +5 -0
- package/template/src/screens/Login/Login.tsx +114 -0
- package/template/src/screens/Settings/Settings.tsx +5 -0
- package/template/src/screens/main/Main.tsx +5 -0
- package/template/src/screens/profile/Profile.tsx +5 -0
- package/template/src/screens/splash/Splash.tsx +19 -0
- package/template/src/sheetManager/sheets.tsx +14 -0
- package/template/tsconfig.json +3 -0
- package/template/types/index.ts +108 -0
- package/template/types/react-native-config.d.ts +19 -0
- 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
|
+
}
|