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

@@ -148,18 +148,13 @@ export const Container = ({
}}> }}>
<SelectionHeader /> <SelectionHeader />
<Animatable.View
animation="fadeIn"
useNativeDriver={true}
duration={600}
delay={700}>
<Animatable.View <Animatable.View
transition={['backgroundColor', 'opacity', 'height']} transition={['backgroundColor', 'opacity', 'height']}
duration={300} duration={300}
style={{ style={{
position: 'absolute', position: 'absolute',
backgroundColor: colors.bg, backgroundColor: colors.bg,
zIndex: 10, zIndex: 800,
height: selectionMode ? 0 : null, height: selectionMode ? 0 : null,
opacity: selectionMode ? 0 : 1, opacity: selectionMode ? 0 : 1,
width: '100%', width: '100%',
@@ -193,7 +188,6 @@ export const Container = ({
/> />
) : 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>