Repository navigation
Devops/feature flag - #8
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.