fix minor bugs

This commit is contained in:
ammarahm-ed
2020-01-26 22:15:08 +05:00
parent 6968c94e4f
commit e4b473595c
6 changed files with 47 additions and 53 deletions

View File

@@ -158,7 +158,7 @@ export default class ActionSheet extends Component {
}; };
_onScrollEndDrag = event => { _onScrollEndDrag = event => {
let {springOffset} = this.props; let {springOffset, extraScroll} = this.props;
let verticalOffset = event.nativeEvent.contentOffset.y; let verticalOffset = event.nativeEvent.contentOffset.y;
@@ -318,7 +318,6 @@ export default class ActionSheet extends Component {
style={[ style={[
{ {
width: '100%', width: '100%',
backgroundColor: 'white',
}, },
footerStyle, footerStyle,
{ {

View File

@@ -149,50 +149,44 @@ export const Container = ({
<SelectionHeader /> <SelectionHeader />
<Animatable.View <Animatable.View
animation="fadeIn" transition={['backgroundColor', 'opacity', 'height']}
useNativeDriver={true} duration={300}
duration={600} style={{
delay={700}> position: 'absolute',
<Animatable.View backgroundColor: colors.bg,
transition={['backgroundColor', 'opacity', 'height']} zIndex: 800,
duration={300} height: selectionMode ? 0 : null,
style={{ opacity: selectionMode ? 0 : 1,
position: 'absolute', width: '100%',
backgroundColor: colors.bg, }}>
zIndex: 10, <Header
height: selectionMode ? 0 : null, menu
opacity: selectionMode ? 0 : 1, hide={hideHeader}
width: '100%', verticalMenu
}}> showSearch={() => {
<Header setHideHeader(false);
menu countUp = 0;
hide={hideHeader} countDown = 0;
verticalMenu }}
showSearch={() => { colors={colors}
setHideHeader(false); heading={'Home'}
countUp = 0; canGoBack={false}
countDown = 0; customIcon="menu"
}} />
colors={colors}
heading={'Home'}
canGoBack={false}
customIcon="menu"
/>
{data[0] ? ( {data[0] ? (
<Search <Search
clear={() => setText('')} clear={() => setText('')}
hide={hideHeader} hide={hideHeader}
onChangeText={onChangeText} onChangeText={onChangeText}
onSubmitEditing={onSubmitEditing} onSubmitEditing={onSubmitEditing}
placeholder="Search your notes" placeholder="Search your notes"
onBlur={onBlur} onBlur={onBlur}
onFocus={onFocus} onFocus={onFocus}
clearSearch={clearSearch} clearSearch={clearSearch}
value={text} value={text}
/> />
) : null} ) : null}
</Animatable.View>
</Animatable.View> </Animatable.View>
{children} {children}

View File

@@ -256,7 +256,6 @@ export default class NoteItem extends React.Component {
justifyContent: 'center', justifyContent: 'center',
minHeight: 70, minHeight: 70,
alignItems: 'center', alignItems: 'center',
paddingRight: ph,
}}> }}>
<TouchableOpacity <TouchableOpacity
style={{ style={{

View File

@@ -14,6 +14,8 @@ import {slideLeft, slideRight} from '../../utils/animations';
import {NotesPlaceHolder} from '../ListPlaceholders'; import {NotesPlaceHolder} from '../ListPlaceholders';
import NoteItem from '../NoteItem'; import NoteItem from '../NoteItem';
import SelectionWrapper from '../SelectionWrapper'; import SelectionWrapper from '../SelectionWrapper';
import {eSendEvent} from '../../services/eventManager';
import {eScrollEvent} from '../../services/events';
export const NotesList = ({isGrouped = false}) => { export const NotesList = ({isGrouped = false}) => {
const [state, dispatch] = useTracked(); const [state, dispatch] = useTracked();
@@ -58,7 +60,7 @@ export const NotesList = ({isGrouped = false}) => {
const _onScroll = event => { const _onScroll = event => {
if (!event) return; if (!event) return;
y = event.nativeEvent.contentOffset.y; let y = event.nativeEvent.contentOffset.y;
eSendEvent(eScrollEvent, y); eSendEvent(eScrollEvent, y);
}; };

View File

@@ -100,9 +100,9 @@ const renderLogin = (colors, navigation) => {
return ( return (
<View <View
style={{ style={{
justifyContent: 'center', justifyContent: DDS.isTab ? 'center' : 'flex-start',
width: '80%', width: '100%',
height: '80%', height: DDS.isTab ? '80%' : '100%',
alignSelf: 'center', alignSelf: 'center',
}}> }}>
<View> <View>

View File

@@ -81,9 +81,9 @@ const renderSignup = colors => {
return ( return (
<View <View
style={{ style={{
justifyContent: 'center', justifyContent: DDS.isTab ? 'center' : 'flex-start',
width: '80%', width: '100%',
height: '80%', height: DDS.isTab ? '80%' : '100%',
alignSelf: 'center', alignSelf: 'center',
}}> }}>
<View> <View>