avoiding inline style

This commit is contained in:
Nouman Tahir 2021-03-16 13:59:22 +05:00
parent f7a3879906
commit 6d32edf66d
2 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,7 @@ const SnippetEditorModal = ({username, onSnippetsUpdated}: SnippetEditorModalPro
keyboardVerticalOffset={Platform.OS == 'ios' ? 64 : null}
behavior={Platform.OS === 'ios' ? 'padding' : null}
>
<View style={{flex:1}}>
<View style={styles.inputContainer}>
<View style={{height:Math.max(35, titleHeight)}}>

View File

@ -14,6 +14,9 @@ export default EStyleSheet.create({
marginTop:24,
paddingHorizontal:24,
},
inputContainer:{
flex:1
} as ViewStyle,
titleInput:{
color: '$primaryBlack',
fontWeight: 'bold',
@ -57,4 +60,5 @@ export default EStyleSheet.create({
alignItems:'center',
marginBottom:16
} as ViewStyle,
})