-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KeyboardAwareScrollView: Remove redundant props
flexGrow is not really appropriate, as the screen resizes, when keyboard is shown. Switch to fixed margin instead
- Loading branch information
1 parent
e379305
commit ddc6d61
Showing
7 changed files
with
67 additions
and
89 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
import React from 'react' | ||
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; | ||
|
||
const KeyboardAwareScrollViewWrapper = ({ children }) => { | ||
return ( | ||
<KeyboardAwareScrollView style={{ flex: 1 }} keyboardShouldPersistTaps> | ||
{children} | ||
</KeyboardAwareScrollView> | ||
) | ||
} | ||
|
||
export default KeyboardAwareScrollViewWrapper |
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
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
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