-
-
Notifications
You must be signed in to change notification settings - Fork 104
feat(react navigation): use static screens configuration #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
989739e
to
8a04f0d
Compare
@jpudysz thoughts on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is no need to refactor it that way.
cli/src/templates/packages/react-navigation/navigation/tab-navigator.tsx.ejs
Show resolved
Hide resolved
fix fix fix fix: unistyles warning feat: use rnn theme together with unistyles theme remove file
d205331
to
4ae6f71
Compare
Renamed type to better reflect that it represents the root navigator's param list, not specifically a stack. This aligns with the Navigation component naming convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have 2 suggestions - the one about theme is important, the other one is just a suggestion. But otherwise looks good to me.
- Use DarkTheme/DefaultTheme instead of merging with dark property - Replace useEffect with Navigation onReady prop for SplashScreen - Clean up theme selection with cleaner useMemo syntax - Remove unused useEffect import from Tamagui section
I believe this has now addressed all comments I think its ready to go @danstepanov |
Description
moves templates to the static configuration
note that I moved to the stylesheet api for unistyles because the config is static so its more complicated to use a hook in the setup of the screen options
Related Issue
Motivation and Context
its the suggested way by the react navigation team
How Has This Been Tested?
tested with these combinations
Screenshots (if appropriate):