-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAttachmentsContainer.js
More file actions
33 lines (28 loc) · 1.02 KB
/
AttachmentsContainer.js
File metadata and controls
33 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, {Fragment, useState, useRef} from 'react';
import {Text, Button, View, Animated, StatusBar} from 'react-native';
import styles from './styles';
import AttachmentFlatList from './AttachmentFlatList';
const AttachmentsContainer = props => {
const [buttonContainerHeight, setButtonContainerHeight] = useState(0);
const [headerHeight, setHeaderHeight] = useState(60);
return (
<Fragment>
<StatusBar hidden />
<View style={{height: 60, width: '100%', backgroundColor: '#C182D3'}} />
<View style={[styles.Container, {zIndex: 2}]}>
<AttachmentFlatList {...{buttonContainerHeight, headerHeight}} />
</View>
<View
style={{backgroundColor: 'white'}}
onLayout={event => {
let {height} = event.nativeEvent.layout;
setButtonContainerHeight(height);
}}>
<View style={styles.immButtonBox}>
<Button style={styles.immBtn_full} title="Add" />
</View>
</View>
</Fragment>
);
};
export default AttachmentsContainer;