-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Use native KeyboardAvoidingView component everywhere #11586
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8d7a65e
Remove our custom keyboard avoiding view
tgolen 4e3b445
Rename the FAB component so I know what it is
tgolen a075139
Increase the max keys count
tgolen 9cb2e89
Fix component's display name
tgolen fe96e1e
Consolidate floating action button into a single component with a key…
tgolen d4a832d
Remove unused component
tgolen e470677
Change default behavior for padding or else the floatingActionButton …
tgolen 709758a
Make the login keyboard avoiding view more clean
tgolen 73608be
Remove unused import
tgolen 7a13d7f
Use the proper HOC for including insets
tgolen a93a104
Fix some whitespace
tgolen 1232c66
Dont' forget to display the children! THINK OF THE CHILDREN!!!!
tgolen 9b19892
Merge branch 'main' into tgolen-animatedkeyboard
tgolen 1052f4f
Merge branch 'main' into tgolen-animatedkeyboard
tgolen 4285663
Stop sending empty string as keyboard avoiding behavior to fix propTy…
tgolen c856e8e
Remove unused import
tgolen d73d240
Remove our weird keyboard thing on the login page
tgolen a0a1ead
Cleanup an unnecessary variable
tgolen 5cdbed9
Put back the safe area insets
tgolen 99682bc
Merge branch 'main' into tgolen-animatedkeyboard
tgolen 731bc69
Remove extra line break
tgolen fd15d80
Clean up components for sign in page graphics
tgolen 9a9310e
Fix styles on login page
tgolen fb62d8c
Apply wrapper styles to variable instead of single component
tgolen 0f3f363
Merge branch 'main' into tgolen-animatedkeyboard
tgolen 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
34 changes: 0 additions & 34 deletions
34
src/pages/signin/SignInPageLayout/LoginKeyboardAvoidingView/index.js
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/pages/signin/SignInPageLayout/LoginKeyboardAvoidingView/index.native.js
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {Pressable} from 'react-native'; | ||
import React from 'react'; | ||
import _ from 'underscore'; | ||
import styles from '../../../styles/styles'; | ||
import * as StyleUtils from '../../../styles/StyleUtils'; | ||
import * as Link from '../../../libs/actions/Link'; | ||
import SVGImage from '../../../components/SVGImage'; | ||
|
||
const backgroundStyle = StyleUtils.getLoginPagePromoStyle(); | ||
|
||
const SignInPageGraphics = () => ( | ||
<Pressable | ||
style={[ | ||
styles.flex1, | ||
StyleUtils.getBackgroundColorStyle(backgroundStyle.backgroundColor), | ||
]} | ||
onPress={() => { | ||
Link.openExternalLink(backgroundStyle.redirectUri); | ||
}} | ||
disabled={_.isEmpty(backgroundStyle.redirectUri)} | ||
> | ||
<SVGImage | ||
width="100%" | ||
height="100%" | ||
src={backgroundStyle.backgroundImageUri} | ||
resizeMode="contain" | ||
/> | ||
</Pressable> | ||
); | ||
|
||
SignInPageGraphics.displayName = 'SignInPageGraphics'; | ||
|
||
export default SignInPageGraphics; |
Oops, something went wrong.
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.
This was a mistake to add because it created duplicate keyboard avoiding views. This was caught in the issue here: #10905
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.
The other one is in
BaseScreenWrapper