Skip to content

Commit 775a9c0

Browse files
author
Houssein Djirdeh
authored
fix(editissuecomment, textinput): Fix height rendering for Android (#428)
1 parent 5ed6dfc commit 775a9c0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/issue/screens/edit-issue-comment.screen.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { editIssueBody, editIssueComment } from '../issue.action';
1818

1919
const styles = StyleSheet.create({
2020
textInput: {
21-
maxHeight: Dimensions.get('window').height / 2,
2221
paddingVertical: 10,
2322
fontSize: normalize(12),
2423
marginHorizontal: 15,
@@ -116,7 +115,13 @@ class EditIssueComment extends Component {
116115
issueCommentHeight: event.nativeEvent.contentSize.height,
117116
})}
118117
placeholderTextColor={colors.grey}
119-
style={styles.textInput}
118+
style={[
119+
styles.textInput,
120+
{
121+
height: this.state.issueCommentHeight,
122+
maxHeight: Dimensions.get('window').height / 2,
123+
},
124+
]}
120125
value={issueComment}
121126
/>
122127
</SectionList>

0 commit comments

Comments
 (0)