create-gufran-expo-app 2.0.0 → 2.0.2

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 (266) hide show
  1. package/lib/createApp.js +7 -2
  2. package/package.json +1 -1
  3. package/template/App.tsx +118 -0
  4. package/template/ReactotronConfig.js +5 -0
  5. package/template/android/app/build.gradle +184 -0
  6. package/template/android/app/debug.keystore +0 -0
  7. package/template/android/app/google-services.json +29 -0
  8. package/template/android/app/proguard-rules.pro +14 -0
  9. package/template/android/app/src/debug/AndroidManifest.xml +7 -0
  10. package/template/android/app/src/debugOptimized/AndroidManifest.xml +7 -0
  11. package/template/android/app/src/main/AndroidManifest.xml +28 -0
  12. package/template/android/app/src/main/assets/fonts/Outfit-Bold.ttf +0 -0
  13. package/template/android/app/src/main/assets/fonts/Outfit-Light.ttf +0 -0
  14. package/template/android/app/src/main/assets/fonts/Outfit-Medium.ttf +0 -0
  15. package/template/android/app/src/main/assets/fonts/Outfit-Regular.ttf +0 -0
  16. package/template/android/app/src/main/assets/fonts/Outfit-SemiBold.ttf +0 -0
  17. package/template/android/app/src/main/java/com/club/yakka/MainActivity.kt +61 -0
  18. package/template/android/app/src/main/java/com/club/yakka/MainApplication.kt +60 -0
  19. package/template/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  20. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  21. package/template/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  22. package/template/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  23. package/template/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  24. package/template/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  25. package/template/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  26. package/template/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  27. package/template/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  28. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  29. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  30. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  31. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  32. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  33. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  34. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  35. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  36. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  37. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  38. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  39. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  40. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  41. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  42. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  43. package/template/android/app/src/main/res/values/colors.xml +6 -0
  44. package/template/android/app/src/main/res/values/strings.xml +5 -0
  45. package/template/android/app/src/main/res/values/styles.xml +14 -0
  46. package/template/android/app/src/main/res/values-night/colors.xml +1 -0
  47. package/template/android/build.gradle +33 -0
  48. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  49. package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  50. package/template/android/gradle.properties +65 -0
  51. package/template/android/gradlew +251 -0
  52. package/template/android/gradlew.bat +94 -0
  53. package/template/android/settings.gradle +39 -0
  54. package/template/app.json +69 -0
  55. package/template/assets/adaptive-icon.png +0 -0
  56. package/template/assets/adaptive-icon1.png +0 -0
  57. package/template/assets/app_icon.png +0 -0
  58. package/template/assets/favicon.png +0 -0
  59. package/template/assets/icon.png +0 -0
  60. package/template/assets/splash-icon.png +0 -0
  61. package/template/babel-plugin-disable-font-scaling.js +41 -0
  62. package/template/babel.config.js +28 -0
  63. package/template/firebase.json +5 -0
  64. package/template/index.ts +24 -0
  65. package/template/ios/.xcode.env +11 -0
  66. package/template/ios/ClubYakka/AppDelegate.swift +74 -0
  67. package/template/ios/ClubYakka/ClubYakka-Bridging-Header.h +3 -0
  68. package/template/ios/ClubYakka/ClubYakka.entitlements +8 -0
  69. package/template/ios/ClubYakka/GoogleService-Info.plist +30 -0
  70. package/template/ios/ClubYakka/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  71. package/template/ios/ClubYakka/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
  72. package/template/ios/ClubYakka/Images.xcassets/Contents.json +6 -0
  73. package/template/ios/ClubYakka/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
  74. package/template/ios/ClubYakka/Images.xcassets/SplashScreenLegacy.imageset/Contents.json +23 -0
  75. package/template/ios/ClubYakka/Images.xcassets/SplashScreenLegacy.imageset/image.png +0 -0
  76. package/template/ios/ClubYakka/Images.xcassets/SplashScreenLegacy.imageset/image@2x.png +0 -0
  77. package/template/ios/ClubYakka/Images.xcassets/SplashScreenLegacy.imageset/image@3x.png +0 -0
  78. package/template/ios/ClubYakka/Info.plist +101 -0
  79. package/template/ios/ClubYakka/PrivacyInfo.xcprivacy +50 -0
  80. package/template/ios/ClubYakka/SplashScreen.storyboard +48 -0
  81. package/template/ios/ClubYakka/Supporting/Expo.plist +12 -0
  82. package/template/ios/ClubYakka.xcodeproj/project.pbxproj +669 -0
  83. package/template/ios/ClubYakka.xcodeproj/xcshareddata/xcschemes/ClubYakka.xcscheme +88 -0
  84. package/template/ios/ClubYakka.xcworkspace/contents.xcworkspacedata +10 -0
  85. package/template/ios/ClubYakka.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
  86. package/template/ios/Podfile +84 -0
  87. package/template/ios/Podfile.lock +2698 -0
  88. package/template/ios/Podfile.properties.json +8 -0
  89. package/template/metro.config.js +17 -0
  90. package/template/package.json +70 -0
  91. package/template/patches/react-native-background-upload+6.6.0.patch +704 -0
  92. package/template/react-native.config.js +7 -0
  93. package/template/src/assets/fonts/Outfit-Bold.ttf +0 -0
  94. package/template/src/assets/fonts/Outfit-Light.ttf +0 -0
  95. package/template/src/assets/fonts/Outfit-Medium.ttf +0 -0
  96. package/template/src/assets/fonts/Outfit-Regular.ttf +0 -0
  97. package/template/src/assets/fonts/Outfit-SemiBold.ttf +0 -0
  98. package/template/src/assets/icons/BG.svg +33 -0
  99. package/template/src/assets/icons/Ic_Users.svg +6 -0
  100. package/template/src/assets/icons/arrow-left-white.svg +4 -0
  101. package/template/src/assets/icons/arrow-left.svg +4 -0
  102. package/template/src/assets/icons/bell.svg +4 -0
  103. package/template/src/assets/icons/bottomSheetIcone.svg +3 -0
  104. package/template/src/assets/icons/call.svg +4 -0
  105. package/template/src/assets/icons/camera.svg +0 -0
  106. package/template/src/assets/icons/chatAppleGreenBG.svg +22 -0
  107. package/template/src/assets/icons/check.svg +4 -0
  108. package/template/src/assets/icons/check_Radio.svg +4 -0
  109. package/template/src/assets/icons/chevron-right.svg +3 -0
  110. package/template/src/assets/icons/clubDefauldImage.png +0 -0
  111. package/template/src/assets/icons/curvBackgroundView.svg +3 -0
  112. package/template/src/assets/icons/defaultClub.png +0 -0
  113. package/template/src/assets/icons/email.svg +3 -0
  114. package/template/src/assets/icons/emptyUser.svg +5 -0
  115. package/template/src/assets/icons/eye-Hide.svg +8 -0
  116. package/template/src/assets/icons/eye.svg +4 -0
  117. package/template/src/assets/icons/gallery.svg +4 -0
  118. package/template/src/assets/icons/home.svg +4 -0
  119. package/template/src/assets/icons/ic_Calendar.svg +14 -0
  120. package/template/src/assets/icons/ic_Calendar_blue.svg +12 -0
  121. package/template/src/assets/icons/ic_Calendar_white.svg +12 -0
  122. package/template/src/assets/icons/ic_Chat.svg +14 -0
  123. package/template/src/assets/icons/ic_ChatAppleGreen.svg +21 -0
  124. package/template/src/assets/icons/ic_ChatAppleWhite.svg +21 -0
  125. package/template/src/assets/icons/ic_Download.svg +6 -0
  126. package/template/src/assets/icons/ic_Events.svg +6 -0
  127. package/template/src/assets/icons/ic_HeadCoachIcon.svg +3 -0
  128. package/template/src/assets/icons/ic_Membership.svg +10 -0
  129. package/template/src/assets/icons/ic_Notification.svg +6 -0
  130. package/template/src/assets/icons/ic_Raffles.svg +14 -0
  131. package/template/src/assets/icons/ic_Referral_Members.svg +12 -0
  132. package/template/src/assets/icons/ic_Shop.svg +13 -0
  133. package/template/src/assets/icons/ic_Teams.svg +8 -0
  134. package/template/src/assets/icons/ic_Volunteer.svg +9 -0
  135. package/template/src/assets/icons/ic_add.svg +3 -0
  136. package/template/src/assets/icons/ic_addCircle.svg +5 -0
  137. package/template/src/assets/icons/ic_chatSend.svg +4 -0
  138. package/template/src/assets/icons/ic_chat_blue_bg.svg +22 -0
  139. package/template/src/assets/icons/ic_clock_blue.svg +4 -0
  140. package/template/src/assets/icons/ic_delete.svg +8 -0
  141. package/template/src/assets/icons/ic_more.svg +5 -0
  142. package/template/src/assets/icons/ic_mute.svg +10 -0
  143. package/template/src/assets/icons/ic_pdf.svg +3 -0
  144. package/template/src/assets/icons/ic_pending_AppleGreen.svg +11 -0
  145. package/template/src/assets/icons/ic_right_appleGreen.svg +11 -0
  146. package/template/src/assets/icons/ic_unread_chat_blue_bg.svg +23 -0
  147. package/template/src/assets/icons/ic_volunteer_Member.svg +8 -0
  148. package/template/src/assets/icons/index.ts +144 -0
  149. package/template/src/assets/icons/location-blue.svg +4 -0
  150. package/template/src/assets/icons/location-white.svg +4 -0
  151. package/template/src/assets/icons/location.svg +4 -0
  152. package/template/src/assets/icons/lock.svg +5 -0
  153. package/template/src/assets/icons/log-out.svg +5 -0
  154. package/template/src/assets/icons/login_logo.svg +9 -0
  155. package/template/src/assets/icons/mail.svg +4 -0
  156. package/template/src/assets/icons/or_saprater.svg +5 -0
  157. package/template/src/assets/icons/password.svg +4 -0
  158. package/template/src/assets/icons/profile-appleGreen.svg +6 -0
  159. package/template/src/assets/icons/search.svg +3 -0
  160. package/template/src/assets/icons/settings.svg +4 -0
  161. package/template/src/assets/icons/success.svg +4 -0
  162. package/template/src/assets/icons/unCheck_Radio.svg +3 -0
  163. package/template/src/assets/icons/uncheck.svg +3 -0
  164. package/template/src/assets/icons/upload_Image.svg +6 -0
  165. package/template/src/assets/icons/upload_Image_Member.svg +6 -0
  166. package/template/src/assets/icons/user.svg +4 -0
  167. package/template/src/assets/icons/wifi.svg +1 -0
  168. package/template/src/assets/images/Splash.png +0 -0
  169. package/template/src/assets/images/SplashLogo.png +0 -0
  170. package/template/src/assets/images/background.png +0 -0
  171. package/template/src/assets/images/clubDefauldImage.png +0 -0
  172. package/template/src/assets/images/index.tsx +9 -0
  173. package/template/src/assets/index.ts +1 -0
  174. package/template/src/components/common/AddMemberModal.tsx +543 -0
  175. package/template/src/components/common/AppLoader.tsx +91 -0
  176. package/template/src/components/common/Button.tsx +173 -0
  177. package/template/src/components/common/ClubCard.tsx +248 -0
  178. package/template/src/components/common/Icon.tsx +93 -0
  179. package/template/src/components/common/IconAlt.tsx +65 -0
  180. package/template/src/components/common/IconButton.tsx +92 -0
  181. package/template/src/components/common/ImagePicker.tsx +451 -0
  182. package/template/src/components/common/LoadingSpinner.tsx +30 -0
  183. package/template/src/components/common/OTPInput.tsx +128 -0
  184. package/template/src/components/common/ReminderCalendar.tsx +129 -0
  185. package/template/src/components/common/ReminderCardItem.tsx +91 -0
  186. package/template/src/components/common/SafeAreaWrapper.tsx +27 -0
  187. package/template/src/components/common/SetReminderModal.tsx +308 -0
  188. package/template/src/components/common/SlowInternet.js +57 -0
  189. package/template/src/components/common/TeamCard.tsx +297 -0
  190. package/template/src/components/common/TextInput.tsx +227 -0
  191. package/template/src/components/common/ToastConfig.tsx +103 -0
  192. package/template/src/components/common/ToastManager.ts +86 -0
  193. package/template/src/components/common/UploadProgressModal.tsx +284 -0
  194. package/template/src/components/common/WrapperContainer.tsx +39 -0
  195. package/template/src/components/common/index.ts +19 -0
  196. package/template/src/constants/Constants.tsx +7 -0
  197. package/template/src/constants/Fonts.tsx +30 -0
  198. package/template/src/constants/index.ts +45 -0
  199. package/template/src/constants/strings.ts +211 -0
  200. package/template/src/constants/theme.ts +72 -0
  201. package/template/src/contexts/AuthContext.tsx +268 -0
  202. package/template/src/contexts/index.ts +2 -0
  203. package/template/src/hooks/index.ts +3 -0
  204. package/template/src/hooks/useImageUpload.ts +199 -0
  205. package/template/src/index.ts +8 -0
  206. package/template/src/navigation/AuthStack.tsx +67 -0
  207. package/template/src/navigation/MainStack.tsx +183 -0
  208. package/template/src/navigation/MiddleStack.tsx +35 -0
  209. package/template/src/navigation/RootNavigator.tsx +101 -0
  210. package/template/src/navigation/index.ts +5 -0
  211. package/template/src/navigation/navigationRef.ts +5 -0
  212. package/template/src/providers/QueryProvider.tsx +30 -0
  213. package/template/src/screens/DetailsScreen.tsx +271 -0
  214. package/template/src/screens/HomeScreen.tsx +736 -0
  215. package/template/src/screens/ProfileScreen.tsx +202 -0
  216. package/template/src/screens/SettingsScreen.tsx +253 -0
  217. package/template/src/screens/SportHubScreen.tsx +280 -0
  218. package/template/src/screens/auth/AddMamber.tsx +428 -0
  219. package/template/src/screens/auth/ForgotPasswordScreen.tsx +176 -0
  220. package/template/src/screens/auth/LoginScreen.tsx +286 -0
  221. package/template/src/screens/auth/OTPVerifyScreen.tsx +359 -0
  222. package/template/src/screens/auth/RegisterScreen.tsx +430 -0
  223. package/template/src/screens/auth/SuccessScreen.tsx +201 -0
  224. package/template/src/screens/auth/WalcomeScreen.tsx +274 -0
  225. package/template/src/screens/auth/index.ts +8 -0
  226. package/template/src/screens/chat/ChatScreen.tsx +1819 -0
  227. package/template/src/screens/chat/ChatThreadsScreen.tsx +360 -0
  228. package/template/src/screens/chat/ReportMessageScreen.tsx +238 -0
  229. package/template/src/screens/clubs/Announcements.tsx +426 -0
  230. package/template/src/screens/clubs/BuyRaffleTicketsScreen.tsx +568 -0
  231. package/template/src/screens/clubs/ClubDeteils.tsx +497 -0
  232. package/template/src/screens/clubs/JoinClub.tsx +841 -0
  233. package/template/src/screens/events/EventScreen.tsx +460 -0
  234. package/template/src/screens/index.ts +42 -0
  235. package/template/src/screens/raffles/MyReferralMembersScreen.tsx +758 -0
  236. package/template/src/screens/raffles/RaffleDetailsScreen.tsx +762 -0
  237. package/template/src/screens/raffles/RafflesScreen.tsx +495 -0
  238. package/template/src/screens/raffles/SetRaffleReminderScreen.tsx +390 -0
  239. package/template/src/screens/teams/JoinTeamScreen.tsx +464 -0
  240. package/template/src/screens/teams/MyTeamDetailsScreen.tsx +979 -0
  241. package/template/src/screens/teams/MyTeamScreen.tsx +568 -0
  242. package/template/src/screens/teams/PendingRequestsScreen.tsx +426 -0
  243. package/template/src/screens/volunteerOpportunities/SetReminderScreen.tsx +631 -0
  244. package/template/src/screens/volunteerOpportunities/VolunteerOpportunitiesDetailsScreen.tsx +1049 -0
  245. package/template/src/screens/volunteerOpportunities/VolunteerOpportunitiesScreen.tsx +608 -0
  246. package/template/src/services/api.ts +167 -0
  247. package/template/src/services/authService.ts +422 -0
  248. package/template/src/services/index.ts +5 -0
  249. package/template/src/services/mainServices.ts +1963 -0
  250. package/template/src/stores/authStore.ts +159 -0
  251. package/template/src/stores/index.ts +2 -0
  252. package/template/src/types/index.ts +85 -0
  253. package/template/src/types/navigation.ts +206 -0
  254. package/template/src/utils/AzureUploaderService.ts +371 -0
  255. package/template/src/utils/ClubSearchManager.ts +222 -0
  256. package/template/src/utils/NotificationManager.ts +503 -0
  257. package/template/src/utils/UploadDebugUtil.ts +107 -0
  258. package/template/src/utils/imagePicker.ts +321 -0
  259. package/template/src/utils/index.ts +111 -0
  260. package/template/src/utils/permissions.ts +277 -0
  261. package/template/src/utils/scaling.ts +14 -0
  262. package/template/src/utils/storage.ts +247 -0
  263. package/template/src/utils/usePermissions.ts +275 -0
  264. package/template/src/utils/validation.ts +340 -0
  265. package/template/tsconfig.json +50 -0
  266. package/template/types/svg.d.ts +6 -0
package/lib/createApp.js CHANGED
@@ -195,10 +195,15 @@ async function createExpoApp(projectName, options) {
195
195
  throw error;
196
196
  }
197
197
 
198
- // Copy template files from current directory (the boilerplate itself)
198
+ // Copy template files from the bundled template directory
199
199
  spinner = ora('Copying template files...').start();
200
200
  try {
201
- const templatePath = path.resolve(__dirname, '../../');
201
+ const templatePath = path.resolve(__dirname, '../template');
202
+
203
+ if (!fs.existsSync(templatePath)) {
204
+ throw new Error('Template files not found. The package may not have been installed correctly.');
205
+ }
206
+
202
207
  copyTemplateFiles(templatePath, projectPath, appName, bundleId);
203
208
  spinner.succeed('Template files copied successfully');
204
209
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gufran-expo-app",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "🚀 Ultimate Expo React Native Boilerplate - Create production-ready Expo apps instantly with Firebase, Navigation, TypeScript, and more. No git clone needed, works offline!",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,118 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { RootNavigator } from './src/navigation';
3
+ import { KeyboardProvider } from "react-native-keyboard-controller";
4
+ import { SafeAreaProvider } from 'react-native-safe-area-context';
5
+ import AppLoader, { loaderRef } from './src/components/common/AppLoader';
6
+ import Toast from 'react-native-toast-message';
7
+ import { QueryProvider } from './src/providers/QueryProvider';
8
+ import { StorageService } from './src';
9
+ import { useAuthStore } from './src/stores';
10
+ import { toastConfig } from './src/components/common/ToastConfig';
11
+ import * as Sentry from "@sentry/react-native";
12
+
13
+ import * as SplashScreen from 'expo-splash-screen';
14
+ import Constants from './src/constants/Constants';
15
+ import { LogBox, View, Text, TextInput } from 'react-native';
16
+ import NetInfo from '@react-native-community/netinfo';
17
+ import { SlowInternet } from './src/components/common';
18
+ import { moderateScale } from './src/utils/scaling';
19
+ import SVG from './src/assets/icons';
20
+ import { Fonts } from './src/constants/Fonts';
21
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
22
+
23
+
24
+ if (__DEV__) {
25
+ require("./ReactotronConfig");
26
+ }
27
+
28
+ SplashScreen.preventAutoHideAsync();
29
+
30
+ function App() {
31
+ const login = useAuthStore((state) => state.login);
32
+ const setLoading = useAuthStore((state) => state.setLoading);
33
+ const [isConnected, setIsConnected] = useState(true);
34
+ const [isSlowConnection, setSlowConnection] = useState(false);
35
+
36
+ useEffect(() => {
37
+ const unsubscribe = NetInfo.addEventListener((state) => {
38
+ const isConnected = !!state.isConnected;
39
+ const isSlowConnection =
40
+ isConnected &&
41
+ state.type === "cellular" &&
42
+ state.details?.cellularGeneration === "3g";
43
+
44
+ setIsConnected(isConnected);
45
+ setSlowConnection(isSlowConnection);
46
+ });
47
+ return () => unsubscribe();
48
+ }, []);
49
+
50
+ useEffect(() => {
51
+ const initialize = () => {
52
+ try {
53
+ if (__DEV__) {
54
+ LogBox.ignoreAllLogs();
55
+ } else {
56
+ Sentry.init({
57
+ dsn: Constants.SENTRY_SESSION_ID,
58
+ });
59
+ }
60
+ setLoading(true);
61
+ const stored = StorageService.auth.getUser();
62
+ if (stored?.accessToken && stored?.user) {
63
+ login(stored.user, stored.accessToken, stored.authorizationToken);
64
+ }
65
+ } catch (e) {
66
+ console.log('Auth restore failed', e);
67
+ } finally {
68
+ setLoading(false);
69
+ }
70
+ };
71
+ initialize();
72
+ }, [login, setLoading]);
73
+
74
+ if (!isConnected) {
75
+ return (
76
+ <View
77
+ style={{
78
+ flex: 1,
79
+ justifyContent: "center",
80
+ alignItems: "center",
81
+ backgroundColor: "white",
82
+ }}>
83
+ <SVG.no_wifi width={moderateScale(50)} height={moderateScale(50)} />
84
+ <Text
85
+ style={{
86
+ marginTop: moderateScale(2),
87
+ fontSize: moderateScale(16),
88
+ fontFamily: Fonts.outfitBold,
89
+ }}>
90
+ No Internet Connection
91
+ </Text>
92
+ </View>
93
+ );
94
+ }
95
+
96
+ return (
97
+ <GestureHandlerRootView style={{ flex: 1 }}>
98
+ <SafeAreaProvider>
99
+ <QueryProvider>
100
+ <KeyboardProvider>
101
+ <RootNavigator />
102
+ {isSlowConnection && (
103
+ <SlowInternet
104
+ isLoading={true}
105
+ message="Slow internet connection detected"
106
+ />
107
+ )}
108
+ <AppLoader ref={loaderRef} />
109
+ <Toast config={toastConfig} />
110
+ </KeyboardProvider>
111
+ </QueryProvider>
112
+ </SafeAreaProvider>
113
+ </GestureHandlerRootView>
114
+ );
115
+ }
116
+
117
+
118
+ export default App;
@@ -0,0 +1,5 @@
1
+ import Reactotron from "reactotron-react-native";
2
+
3
+ Reactotron.configure() // controls connection & communication settings
4
+ .useReactNative() // add all built-in react native plugins
5
+ .connect(); // let's connect!
@@ -0,0 +1,184 @@
1
+ apply plugin: "com.android.application"
2
+ apply plugin: "org.jetbrains.kotlin.android"
3
+ apply plugin: "com.facebook.react"
4
+
5
+ def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
6
+
7
+ /**
8
+ * This is the configuration block to customize your React Native Android app.
9
+ * By default you don't need to apply any configuration, just uncomment the lines you need.
10
+ */
11
+ react {
12
+ entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
13
+ reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
14
+ hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
15
+ codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
16
+
17
+ enableBundleCompression = (findProperty('android.enableBundleCompression') ?: false).toBoolean()
18
+ // Use Expo CLI to bundle the app, this ensures the Metro config
19
+ // works correctly with Expo projects.
20
+ cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
21
+ bundleCommand = "export:embed"
22
+
23
+ /* Folders */
24
+ // The root of your project, i.e. where "package.json" lives. Default is '../..'
25
+ // root = file("../../")
26
+ // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
27
+ // reactNativeDir = file("../../node_modules/react-native")
28
+ // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
29
+ // codegenDir = file("../../node_modules/@react-native/codegen")
30
+
31
+ /* Variants */
32
+ // The list of variants to that are debuggable. For those we're going to
33
+ // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
34
+ // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
35
+ // debuggableVariants = ["liteDebug", "prodDebug"]
36
+
37
+ /* Bundling */
38
+ // A list containing the node command and its flags. Default is just 'node'.
39
+ // nodeExecutableAndArgs = ["node"]
40
+
41
+ //
42
+ // The path to the CLI configuration file. Default is empty.
43
+ // bundleConfig = file(../rn-cli.config.js)
44
+ //
45
+ // The name of the generated asset file containing your JS bundle
46
+ // bundleAssetName = "MyApplication.android.bundle"
47
+ //
48
+ // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
49
+ // entryFile = file("../js/MyApplication.android.js")
50
+ //
51
+ // A list of extra flags to pass to the 'bundle' commands.
52
+ // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
53
+ // extraPackagerArgs = []
54
+
55
+ /* Hermes Commands */
56
+ // The hermes compiler command to run. By default it is 'hermesc'
57
+ // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
58
+ //
59
+ // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
60
+ // hermesFlags = ["-O", "-output-source-map"]
61
+
62
+ /* Autolinking */
63
+ autolinkLibrariesWithApp()
64
+ }
65
+
66
+ /**
67
+ * Set this to true in release builds to optimize the app using [R8](https://developer.android.com/topic/performance/app-optimization/enable-app-optimization).
68
+ */
69
+ def enableMinifyInReleaseBuilds = (findProperty('android.enableMinifyInReleaseBuilds') ?: false).toBoolean()
70
+
71
+ /**
72
+ * The preferred build flavor of JavaScriptCore (JSC)
73
+ *
74
+ * For example, to use the international variant, you can use:
75
+ * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
76
+ *
77
+ * The international variant includes ICU i18n library and necessary data
78
+ * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
79
+ * give correct results when using with locales other than en-US. Note that
80
+ * this variant is about 6MiB larger per architecture than default.
81
+ */
82
+ def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
83
+
84
+ android {
85
+ ndkVersion rootProject.ext.ndkVersion
86
+
87
+ buildToolsVersion rootProject.ext.buildToolsVersion
88
+ compileSdk rootProject.ext.compileSdkVersion
89
+
90
+ namespace 'com.club.yakka'
91
+ defaultConfig {
92
+ applicationId 'com.club.yakka'
93
+ minSdkVersion rootProject.ext.minSdkVersion
94
+ targetSdkVersion rootProject.ext.targetSdkVersion
95
+ versionCode 1
96
+ versionName "1.0.0"
97
+
98
+ buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
99
+ }
100
+ signingConfigs {
101
+ debug {
102
+ storeFile file('debug.keystore')
103
+ storePassword 'android'
104
+ keyAlias 'androiddebugkey'
105
+ keyPassword 'android'
106
+ }
107
+ }
108
+ buildTypes {
109
+ debug {
110
+ signingConfig signingConfigs.debug
111
+ }
112
+ release {
113
+ // Caution! In production, you need to generate your own keystore file.
114
+ // see https://reactnative.dev/docs/signed-apk-android.
115
+ signingConfig signingConfigs.debug
116
+ def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false'
117
+ shrinkResources enableShrinkResources.toBoolean()
118
+ minifyEnabled enableMinifyInReleaseBuilds
119
+ proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
120
+ def enablePngCrunchInRelease = findProperty('android.enablePngCrunchInReleaseBuilds') ?: 'true'
121
+ crunchPngs enablePngCrunchInRelease.toBoolean()
122
+ }
123
+ }
124
+ packagingOptions {
125
+ jniLibs {
126
+ def enableLegacyPackaging = findProperty('expo.useLegacyPackaging') ?: 'false'
127
+ useLegacyPackaging enableLegacyPackaging.toBoolean()
128
+ }
129
+ }
130
+ androidResources {
131
+ ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
132
+ }
133
+ }
134
+
135
+ // Apply static values from `gradle.properties` to the `android.packagingOptions`
136
+ // Accepts values in comma delimited lists, example:
137
+ // android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
138
+ ["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
139
+ // Split option: 'foo,bar' -> ['foo', 'bar']
140
+ def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
141
+ // Trim all elements in place.
142
+ for (i in 0..<options.size()) options[i] = options[i].trim();
143
+ // `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
144
+ options -= ""
145
+
146
+ if (options.length > 0) {
147
+ println "android.packagingOptions.$prop += $options ($options.length)"
148
+ // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
149
+ options.each {
150
+ android.packagingOptions[prop] += it
151
+ }
152
+ }
153
+ }
154
+
155
+ dependencies {
156
+ // The version of react-native is set by the React Native Gradle Plugin
157
+ implementation("com.facebook.react:react-android")
158
+
159
+ def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
160
+ def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
161
+ def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
162
+
163
+ if (isGifEnabled) {
164
+ // For animated gif support
165
+ implementation("com.facebook.fresco:animated-gif:${expoLibs.versions.fresco.get()}")
166
+ }
167
+
168
+ if (isWebpEnabled) {
169
+ // For webp support
170
+ implementation("com.facebook.fresco:webpsupport:${expoLibs.versions.fresco.get()}")
171
+ if (isWebpAnimatedEnabled) {
172
+ // Animated webp support
173
+ implementation("com.facebook.fresco:animated-webp:${expoLibs.versions.fresco.get()}")
174
+ }
175
+ }
176
+
177
+ if (hermesEnabled.toBoolean()) {
178
+ implementation("com.facebook.react:hermes-android")
179
+ } else {
180
+ implementation jscFlavor
181
+ }
182
+ }
183
+
184
+ apply plugin: 'com.google.gms.google-services'
@@ -0,0 +1,29 @@
1
+ {
2
+ "project_info": {
3
+ "project_number": "491798464119",
4
+ "project_id": "club-yaka",
5
+ "storage_bucket": "club-yaka.firebasestorage.app"
6
+ },
7
+ "client": [
8
+ {
9
+ "client_info": {
10
+ "mobilesdk_app_id": "1:491798464119:android:6603b3711718a04862a872",
11
+ "android_client_info": {
12
+ "package_name": "com.club.yakka"
13
+ }
14
+ },
15
+ "oauth_client": [],
16
+ "api_key": [
17
+ {
18
+ "current_key": "AIzaSyAvL142ShElurDYmzeOwJwmzHHblSKCBnk"
19
+ }
20
+ ],
21
+ "services": {
22
+ "appinvite_service": {
23
+ "other_platform_oauth_client": []
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ "configuration_version": "1"
29
+ }
@@ -0,0 +1,14 @@
1
+ # Add project specific ProGuard rules here.
2
+ # By default, the flags in this file are appended to flags specified
3
+ # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
+ # You can edit the include path and order by changing the proguardFiles
5
+ # directive in build.gradle.
6
+ #
7
+ # For more details, see
8
+ # http://developer.android.com/guide/developing/tools/proguard.html
9
+
10
+ # react-native-reanimated
11
+ -keep class com.swmansion.reanimated.** { *; }
12
+ -keep class com.facebook.react.turbomodule.** { *; }
13
+
14
+ # Add any project specific keep options here:
@@ -0,0 +1,7 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ xmlns:tools="http://schemas.android.com/tools">
3
+
4
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5
+
6
+ <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
7
+ </manifest>
@@ -0,0 +1,7 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ xmlns:tools="http://schemas.android.com/tools">
3
+
4
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5
+
6
+ <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
7
+ </manifest>
@@ -0,0 +1,28 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
2
+ <uses-permission android:name="android.permission.CAMERA"/>
3
+ <uses-permission android:name="android.permission.INTERNET"/>
4
+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
5
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
6
+ <uses-permission android:name="android.permission.RECORD_AUDIO"/>
7
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
8
+ <uses-permission android:name="android.permission.VIBRATE"/>
9
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
10
+ <queries>
11
+ <intent>
12
+ <action android:name="android.intent.action.VIEW"/>
13
+ <category android:name="android.intent.category.BROWSABLE"/>
14
+ <data android:scheme="https"/>
15
+ </intent>
16
+ </queries>
17
+ <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true" android:enableOnBackInvokedCallback="false">
18
+ <meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
19
+ <meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
20
+ <meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
21
+ <activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
22
+ <intent-filter>
23
+ <action android:name="android.intent.action.MAIN"/>
24
+ <category android:name="android.intent.category.LAUNCHER"/>
25
+ </intent-filter>
26
+ </activity>
27
+ </application>
28
+ </manifest>
@@ -0,0 +1,61 @@
1
+ package com.club.yakka
2
+
3
+ import android.os.Build
4
+ import android.os.Bundle
5
+
6
+ import com.facebook.react.ReactActivity
7
+ import com.facebook.react.ReactActivityDelegate
8
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
9
+ import com.facebook.react.defaults.DefaultReactActivityDelegate
10
+
11
+ import expo.modules.ReactActivityDelegateWrapper
12
+
13
+ class MainActivity : ReactActivity() {
14
+ override fun onCreate(savedInstanceState: Bundle?) {
15
+ // Set the theme to AppTheme BEFORE onCreate to support
16
+ // coloring the background, status bar, and navigation bar.
17
+ // This is required for expo-splash-screen.
18
+ setTheme(R.style.AppTheme);
19
+ super.onCreate(null)
20
+ }
21
+
22
+ /**
23
+ * Returns the name of the main component registered from JavaScript. This is used to schedule
24
+ * rendering of the component.
25
+ */
26
+ override fun getMainComponentName(): String = "main"
27
+
28
+ /**
29
+ * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
30
+ * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
31
+ */
32
+ override fun createReactActivityDelegate(): ReactActivityDelegate {
33
+ return ReactActivityDelegateWrapper(
34
+ this,
35
+ BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
36
+ object : DefaultReactActivityDelegate(
37
+ this,
38
+ mainComponentName,
39
+ fabricEnabled
40
+ ){})
41
+ }
42
+
43
+ /**
44
+ * Align the back button behavior with Android S
45
+ * where moving root activities to background instead of finishing activities.
46
+ * @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
47
+ */
48
+ override fun invokeDefaultOnBackPressed() {
49
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
50
+ if (!moveTaskToBack(false)) {
51
+ // For non-root activities, use the default implementation to finish them.
52
+ super.invokeDefaultOnBackPressed()
53
+ }
54
+ return
55
+ }
56
+
57
+ // Use the default back button implementation on Android S
58
+ // because it's doing more than [Activity.moveTaskToBack] in fact.
59
+ super.invokeDefaultOnBackPressed()
60
+ }
61
+ }
@@ -0,0 +1,60 @@
1
+ package com.club.yakka
2
+ import com.facebook.react.common.assets.ReactFontManager
3
+
4
+ import android.app.Application
5
+ import android.content.res.Configuration
6
+
7
+ import com.facebook.react.PackageList
8
+ import com.facebook.react.ReactApplication
9
+ import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
10
+ import com.facebook.react.ReactNativeHost
11
+ import com.facebook.react.ReactPackage
12
+ import com.facebook.react.ReactHost
13
+ import com.facebook.react.common.ReleaseLevel
14
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint
15
+ import com.facebook.react.defaults.DefaultReactNativeHost
16
+
17
+ import expo.modules.ApplicationLifecycleDispatcher
18
+ import expo.modules.ReactNativeHostWrapper
19
+
20
+ class MainApplication : Application(), ReactApplication {
21
+
22
+ override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
23
+ this,
24
+ object : DefaultReactNativeHost(this) {
25
+ override fun getPackages(): List<ReactPackage> =
26
+ PackageList(this).packages.apply {
27
+ // Packages that cannot be autolinked yet can be added manually here, for example:
28
+ // add(MyReactNativePackage())
29
+ }
30
+
31
+ override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
32
+
33
+ override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
34
+
35
+ override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
36
+ }
37
+ )
38
+
39
+ override val reactHost: ReactHost
40
+ get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
41
+
42
+ override fun onCreate() {
43
+ super.onCreate()
44
+ // @generated begin xml-fonts-init - expo prebuild (DO NOT MODIFY) sync-da39a3ee5e6b4b0d3255bfef95601890afd80709
45
+
46
+ // @generated end xml-fonts-init
47
+ DefaultNewArchitectureEntryPoint.releaseLevel = try {
48
+ ReleaseLevel.valueOf(BuildConfig.REACT_NATIVE_RELEASE_LEVEL.uppercase())
49
+ } catch (e: IllegalArgumentException) {
50
+ ReleaseLevel.STABLE
51
+ }
52
+ loadReactNative(this)
53
+ ApplicationLifecycleDispatcher.onApplicationCreate(this)
54
+ }
55
+
56
+ override fun onConfigurationChanged(newConfig: Configuration) {
57
+ super.onConfigurationChanged(newConfig)
58
+ ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
59
+ }
60
+ }
@@ -0,0 +1,6 @@
1
+ <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <item android:drawable="@color/splashscreen_background"/>
3
+ <item>
4
+ <bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
5
+ </item>
6
+ </layer-list>
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Copyright (C) 2014 The Android Open Source Project
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
+ android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
+ android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
+ android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
+ android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
+ >
22
+
23
+ <selector>
24
+ <!--
25
+ This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
+ The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
+ NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
+
29
+ <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
+
31
+ For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
+ -->
33
+ <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
+ <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
+ </selector>
36
+
37
+ </inset>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/iconBackground"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ </adaptive-icon>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/iconBackground"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ </adaptive-icon>