mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix minor bugs
This commit is contained in:
@@ -149,50 +149,44 @@ export const Container = ({
|
||||
<SelectionHeader />
|
||||
|
||||
<Animatable.View
|
||||
animation="fadeIn"
|
||||
useNativeDriver={true}
|
||||
duration={600}
|
||||
delay={700}>
|
||||
<Animatable.View
|
||||
transition={['backgroundColor', 'opacity', 'height']}
|
||||
duration={300}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
backgroundColor: colors.bg,
|
||||
zIndex: 10,
|
||||
height: selectionMode ? 0 : null,
|
||||
opacity: selectionMode ? 0 : 1,
|
||||
width: '100%',
|
||||
}}>
|
||||
<Header
|
||||
menu
|
||||
hide={hideHeader}
|
||||
verticalMenu
|
||||
showSearch={() => {
|
||||
setHideHeader(false);
|
||||
countUp = 0;
|
||||
countDown = 0;
|
||||
}}
|
||||
colors={colors}
|
||||
heading={'Home'}
|
||||
canGoBack={false}
|
||||
customIcon="menu"
|
||||
/>
|
||||
transition={['backgroundColor', 'opacity', 'height']}
|
||||
duration={300}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
backgroundColor: colors.bg,
|
||||
zIndex: 800,
|
||||
height: selectionMode ? 0 : null,
|
||||
opacity: selectionMode ? 0 : 1,
|
||||
width: '100%',
|
||||
}}>
|
||||
<Header
|
||||
menu
|
||||
hide={hideHeader}
|
||||
verticalMenu
|
||||
showSearch={() => {
|
||||
setHideHeader(false);
|
||||
countUp = 0;
|
||||
countDown = 0;
|
||||
}}
|
||||
colors={colors}
|
||||
heading={'Home'}
|
||||
canGoBack={false}
|
||||
customIcon="menu"
|
||||
/>
|
||||
|
||||
{data[0] ? (
|
||||
<Search
|
||||
clear={() => setText('')}
|
||||
hide={hideHeader}
|
||||
onChangeText={onChangeText}
|
||||
onSubmitEditing={onSubmitEditing}
|
||||
placeholder="Search your notes"
|
||||
onBlur={onBlur}
|
||||
onFocus={onFocus}
|
||||
clearSearch={clearSearch}
|
||||
value={text}
|
||||
/>
|
||||
) : null}
|
||||
</Animatable.View>
|
||||
{data[0] ? (
|
||||
<Search
|
||||
clear={() => setText('')}
|
||||
hide={hideHeader}
|
||||
onChangeText={onChangeText}
|
||||
onSubmitEditing={onSubmitEditing}
|
||||
placeholder="Search your notes"
|
||||
onBlur={onBlur}
|
||||
onFocus={onFocus}
|
||||
clearSearch={clearSearch}
|
||||
value={text}
|
||||
/>
|
||||
) : null}
|
||||
</Animatable.View>
|
||||
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user