Skip to content

Devops/feature flag - #8

Merged
pspanoudakis merged 5 commits into
mainfrom
devops/feature-flag
Sep 9, 2026
Merged

pspanoudakis merged 5 commits into
mainfrom
devops/feature-flag

Conversation

@bog1200

@bog1200 bog1200 commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

bog1200 and others added 5 commits September 8, 2026 15:33
Adds a shared flag store with per-platform Remote Config clients: the
Firebase JS SDK on web, React Native Firebase on native, both behind one
initializeRemoteConfig() contract.

Flags resolve during the existing startup gate, so the first render sees
real values and a flag change applies on the next app start. Web falls
back to a localStorage snapshot when the fetch fails; native falls back
to the config the native SDK persists itself.

Gates the Sober Check drawer entry behind enableSoberTest, and moves
Remote Config setup out of firebaseConfig.ts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Theme tokens were captured by module-scope StyleSheet.create calls at
import time, so the newThemeTest flag could never apply on native and was
always a launch behind on web.

Views now read the palette from context. createThemedStyles turns a
stylesheet factory into a hook and caches the result per theme, and
commonStyles becomes useCommonStyles. Removing theme.ts forced every
consumer to move, so nothing is left reading tokens at import time.

The root layout resolves the feature flags before mounting the provider,
so the first themed render already has the right palette on both
platforms.
@pspanoudakis
pspanoudakis merged commit 4210db5 into main Sep 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants