Skip to content

Commit dd463ff

Browse files
committed
add footer/header
1 parent 15554f5 commit dd463ff

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/ReportViewPDF/ReportView.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const FeaturePage = ({
102102
const note = tags.note || tags.notes
103103
return (
104104
<Page size="A4" style={styles.page}>
105+
<View style={styles.header} fixed></View>
105106
<View style={styles.pageContent}>
106107
<View style={styles.columnLeft}>
107108
<Text style={styles.presetName}>{preset.name || 'Observation'}</Text>
@@ -158,6 +159,7 @@ const FeaturePage = ({
158159
)}
159160
</View>
160161
</View>
162+
<View style={styles.footer} fixed></View>
161163
</Page>
162164
)
163165
}
@@ -195,7 +197,7 @@ export default ReportViewPDF
195197
const styles = StyleSheet.create({
196198
page: {
197199
backgroundColor: 'white',
198-
paddingTop: 65,
200+
paddingTop: 120,
199201
paddingBottom: 35,
200202
paddingHorizontal: 35,
201203
flexDirection: 'row'
@@ -270,5 +272,8 @@ const styles = StyleSheet.create({
270272
fontSize: 12
271273
},
272274
header: {
275+
},
276+
footer: {
273277
}
278+
274279
})

0 commit comments

Comments
 (0)