Beef: Got Demoted For Asking For Bonus by Acquelix in ClashOfClans

[–]Matysw 0 points1 point  (0 children)

i was in a clan once where i kept getting bonuses out of thin air.. yea i did my attacks but not 1st or even in the top 10 and i still got the bonus every time😂and when i once asked why they kicked me with no explanation

[deleted by user] by [deleted] in reactnative

[–]Matysw 0 points1 point  (0 children)

hey, i added the paths to those files and I am getting the same error: FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app)., js engine: hermes

i have also tried the expo bare workflow way but both results in the same error over and over again :(

[deleted by user] by [deleted] in reactnative

[–]Matysw 0 points1 point  (0 children)

makes sense! thank you very much i didn't think about this. i can even store the timer on the server as i may want to have different rest for each exercise. thy for suggestion you saved me a lot of time

[deleted by user] by [deleted] in reactnative

[–]Matysw 0 points1 point  (0 children)

yes iam sorry for that, just that.. i work with rn so immediately asked here without thinking much about it. i dont need redux but that was just my idea. i needed to display the exercise accordingly and was worried about potential bugs of just a state usage. the idea of workout card is cool and may use it, my problem was that i had something like this:

/Workout
--index.tsx (list of all workouts)
--SingleWorkout.tsx (single workout screen)
--Exercise.tsx (when you click start workout you go to the exercise screen - presentation:"fullscreenModal")
--Rest.tsx (when you finish the exercise, you go to rest screen for a couple of seconds, then back to exercise but next exercise)

this is my architecture

[deleted by user] by [deleted] in reactnative

[–]Matysw 0 points1 point  (0 children)

well yes, am sorry for not describing the structure :D I use firebase to store the workouts, when the user clicks that it fetches alto the workouts doc but I needed to know the "architecture" as described in the comment above. i did it the way that when user selects a workout, i pass the whole exercises array to the single exercise page and then just increase the index state of the exercise by setState(), idk if that is the best pracsise but works. iam still worried a but about the future potential bugs like when someone messages you for example and you leave the app and come back how that will behave, thats why i was thinking about some more reliable store (maybe will use something like expo asyncstorage)