mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix minor bugs
This commit is contained in:
@@ -158,7 +158,7 @@ export default class ActionSheet extends Component {
|
||||
};
|
||||
|
||||
_onScrollEndDrag = event => {
|
||||
let {springOffset} = this.props;
|
||||
let {springOffset, extraScroll} = this.props;
|
||||
|
||||
let verticalOffset = event.nativeEvent.contentOffset.y;
|
||||
|
||||
@@ -318,7 +318,6 @@ export default class ActionSheet extends Component {
|
||||
style={[
|
||||
{
|
||||
width: '100%',
|
||||
backgroundColor: 'white',
|
||||
},
|
||||
footerStyle,
|
||||
{
|
||||
|
||||
@@ -148,18 +148,13 @@ 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,
|
||||
zIndex: 800,
|
||||
height: selectionMode ? 0 : null,
|
||||
opacity: selectionMode ? 0 : 1,
|
||||
width: '100%',
|
||||
@@ -193,7 +188,6 @@ export const Container = ({
|
||||
/>
|
||||
) : null}
|
||||
</Animatable.View>
|
||||
</Animatable.View>
|
||||
|
||||
{children}
|
||||
|
||||
|
||||
@@ -256,7 +256,6 @@ export default class NoteItem extends React.Component {
|
||||
justifyContent: 'center',
|
||||
minHeight: 70,
|
||||
alignItems: 'center',
|
||||
paddingRight: ph,
|
||||
}}>
|
||||
<TouchableOpacity
|
||||
style={{
|
||||
|
||||
@@ -14,6 +14,8 @@ import {slideLeft, slideRight} from '../../utils/animations';
|
||||
import {NotesPlaceHolder} from '../ListPlaceholders';
|
||||
import NoteItem from '../NoteItem';
|
||||
import SelectionWrapper from '../SelectionWrapper';
|
||||
import {eSendEvent} from '../../services/eventManager';
|
||||
import {eScrollEvent} from '../../services/events';
|
||||
|
||||
export const NotesList = ({isGrouped = false}) => {
|
||||
const [state, dispatch] = useTracked();
|
||||
@@ -58,7 +60,7 @@ export const NotesList = ({isGrouped = false}) => {
|
||||
|
||||
const _onScroll = event => {
|
||||
if (!event) return;
|
||||
y = event.nativeEvent.contentOffset.y;
|
||||
let y = event.nativeEvent.contentOffset.y;
|
||||
|
||||
eSendEvent(eScrollEvent, y);
|
||||
};
|
||||
|
||||
@@ -100,9 +100,9 @@ const renderLogin = (colors, navigation) => {
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
justifyContent: 'center',
|
||||
width: '80%',
|
||||
height: '80%',
|
||||
justifyContent: DDS.isTab ? 'center' : 'flex-start',
|
||||
width: '100%',
|
||||
height: DDS.isTab ? '80%' : '100%',
|
||||
alignSelf: 'center',
|
||||
}}>
|
||||
<View>
|
||||
|
||||
@@ -81,9 +81,9 @@ const renderSignup = colors => {
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
justifyContent: 'center',
|
||||
width: '80%',
|
||||
height: '80%',
|
||||
justifyContent: DDS.isTab ? 'center' : 'flex-start',
|
||||
width: '100%',
|
||||
height: DDS.isTab ? '80%' : '100%',
|
||||
alignSelf: 'center',
|
||||
}}>
|
||||
<View>
|
||||
|
||||
Reference in New Issue
Block a user