Skip to content

Commit 9d23d81

Browse files
authored
fix screen UI (#1230)
1 parent 43abbd3 commit 9d23d81

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

demo/src/screens/componentScreens/ExpandableSectionScreen.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,11 @@ class ExpandableSectionScreen extends PureComponent {
6262

6363
getHeaderElement() {
6464
return (
65-
<View>
66-
<Text margin-10 dark10 text60>
65+
<View margin-10 spread row>
66+
<Text dark10 text60>
6767
ExpandableSection's sectionHeader
6868
</Text>
69-
<View style={styles.header}>
70-
<Image style={styles.icon} source={this.getChevron()} />
71-
</View>
69+
<Image style={styles.icon} source={this.getChevron()}/>
7270
</View>
7371
);
7472
}
@@ -124,12 +122,7 @@ class ExpandableSectionScreen extends PureComponent {
124122
export default ExpandableSectionScreen;
125123

126124
const styles = StyleSheet.create({
127-
header: {
128-
marginLeft: 380,
129-
marginTop: 20,
130-
position: 'absolute'
131-
},
132125
icon: {
133-
backgroundColor: 'transparent'
126+
alignSelf: 'center'
134127
}
135128
});

0 commit comments

Comments
 (0)