File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Views/RevealPrivateCredential Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export default function ActionView({
68
68
style = undefined ,
69
69
confirmButtonState = ConfirmButtonState . Normal ,
70
70
scrollViewTestID,
71
+ contentContainerStyle,
71
72
} ) {
72
73
const { colors } = useTheme ( ) ;
73
74
confirmText = confirmText || strings ( 'action_view.confirm' ) ;
@@ -81,6 +82,7 @@ export default function ActionView({
81
82
resetScrollToCoords = { { x : 0 , y : 0 } }
82
83
keyboardShouldPersistTaps = { keyboardShouldPersistTaps }
83
84
testID = { scrollViewTestID }
85
+ contentContainerStyle = { contentContainerStyle }
84
86
>
85
87
< TouchableWithoutFeedback
86
88
style = { baseStyles . flexGrow }
@@ -149,6 +151,7 @@ ActionView.defaultProps = {
149
151
cancelTestID : '' ,
150
152
showCancelButton : true ,
151
153
showConfirmButton : true ,
154
+ contentContainerStyle : undefined ,
152
155
} ;
153
156
154
157
ActionView . propTypes = {
@@ -226,4 +229,8 @@ ActionView.propTypes = {
226
229
* Optional TestID for the parent scroll View
227
230
*/
228
231
scrollViewTestID : PropTypes . string ,
232
+ /**
233
+ * Optional View styles. Applies to scroll view
234
+ */
235
+ contentContainerStyle : PropTypes . object ,
229
236
} ;
Original file line number Diff line number Diff line change @@ -618,6 +618,7 @@ const RevealPrivateCredential = ({
618
618
scrollViewTestID = {
619
619
RevealSeedViewSelectorsIDs . REVEAL_CREDENTIAL_SCROLL_ID
620
620
}
621
+ contentContainerStyle = { styles . stretch }
621
622
>
622
623
< >
623
624
< View style = { [ styles . rowWrapper , styles . normalText ] } >
@@ -631,7 +632,7 @@ const RevealPrivateCredential = ({
631
632
</ View >
632
633
{ renderWarning ( credentialSlug ) }
633
634
634
- < View style = { styles . rowWrapper } >
635
+ < View style = { [ styles . rowWrapper , styles . stretch ] } >
635
636
{ unlocked ? renderTabView ( credentialSlug ) : renderPasswordEntry ( ) }
636
637
</ View >
637
638
</ >
Original file line number Diff line number Diff line change @@ -128,4 +128,7 @@ export const createStyles = (theme: Theme) =>
128
128
tabBar : {
129
129
borderColor : theme . colors . border . muted ,
130
130
} ,
131
+ stretch : {
132
+ flex : 1 ,
133
+ } ,
131
134
} ) ;
You can’t perform that action at this time.
0 commit comments