-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix: Web rendering issues and welcome screen layout issue #2809
Open
fpena
wants to merge
14
commits into
master
Choose a base branch
from
fp/2807-fix-web-issue
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+40
−16
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5ddef96
Improvements
fpena 3718655
Better comment for hook selection in useHeader
fpena ed2a520
Make subheading in welcome screen not clash with face
fpena 2f1ecff
Add ScreenWithoutScrolling to ScrollView
fpena 33c93f2
Prettier change
fpena d2d4d3e
Merge branch 'master' into fp/2807-fix-web-issue
fpena 711f0a5
Add comment for Screen component change
fpena d7fafc8
Update boilerplate/app/utils/useHeader.tsx
fpena 8ea3fe8
Merge branch 'master' into fp/2807-fix-web-issue
fpena a984306
Improve wrapper logic
fpena 1b6e0e0
Fix name for effect
fpena 42d2163
Rename wrapper view
fpena c51a54d
Format changes
fpena 690af77
Use specific KeyboardAvoidingView from RNKC
fpena File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import { | |
import { isRTL } from "../i18n" | ||
import { useStores } from "../models" // @demo remove-current-line | ||
import { AppStackScreenProps } from "../navigators" | ||
import type { ThemedStyle } from "@/theme" | ||
import { spacing, type ThemedStyle } from "@/theme" | ||
import { useHeader } from "../utils/useHeader" // @demo remove-current-line | ||
import { useSafeAreaInsetsStyle } from "../utils/useSafeAreaInsetsStyle" | ||
import { useAppTheme } from "@/utils/useAppTheme" | ||
|
@@ -57,7 +57,7 @@ export const WelcomeScreen: FC<WelcomeScreenProps> = observer( | |
tx="welcomeScreen:readyForLaunch" | ||
preset="heading" | ||
/> | ||
<Text tx="welcomeScreen:exciting" preset="subheading" /> | ||
<Text tx="welcomeScreen:exciting" preset="subheading" style={$subheading} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<Image | ||
style={$welcomeFace} | ||
source={welcomeFace} | ||
|
@@ -87,8 +87,9 @@ const $topContainer: ThemedStyle<ViewStyle> = ({ spacing }) => ({ | |
flexShrink: 1, | ||
flexGrow: 1, | ||
flexBasis: "57%", | ||
justifyContent: "center", | ||
justifyContent: "space-around", | ||
paddingHorizontal: spacing.lg, | ||
paddingBottom: spacing.sm, | ||
}) | ||
|
||
const $bottomContainer: ThemedStyle<ViewStyle> = ({ colors, spacing }) => ({ | ||
|
@@ -108,6 +109,10 @@ const $welcomeLogo: ThemedStyle<ImageStyle> = ({ spacing }) => ({ | |
marginBottom: spacing.xxl, | ||
}) | ||
|
||
const $subheading: TextStyle = { | ||
paddingRight: spacing.xxxl, | ||
} | ||
|
||
const $welcomeFace: ImageStyle = { | ||
height: 169, | ||
width: 269, | ||
|
This file contains 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
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.
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.
Also meant to ask: why does web only get
ScreeenWithoutScrolling
? Shouldn't it have both options?I think that's why this appeared to fix things, it removes
KeyboardAwareScrollView
from the document.