Temp remove some files. Android is working.

This commit is contained in:
Diego Mello 2023-04-04 15:34:53 -03:00
parent 6c1f0729b7
commit aac60ea031
2 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@ import { dequal } from 'dequal';
import moment from 'moment';
import React from 'react';
import { FlatListProps, View, ViewToken, StyleSheet, Platform } from 'react-native';
import { event, Value } from 'react-native-reanimated';
// import { event, Value } from 'react-native-reanimated';
import { Observable, Subscription } from 'rxjs';
import ActivityIndicator from '../../../containers/ActivityIndicator';
@ -14,7 +14,7 @@ import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimat
import log from '../../../lib/methods/helpers/log';
import EmptyRoom from '../EmptyRoom';
import List, { IListProps, TListRef } from './List';
import NavBottomFAB from './NavBottomFAB';
// import NavBottomFAB from './NavBottomFAB';
import { loadMissedMessages, loadThreadMessages } from '../../../lib/methods';
import { Services } from '../../../lib/services';
import RefreshControl from './RefreshControl';
@ -31,17 +31,17 @@ const styles = StyleSheet.create({
}
});
const onScroll = ({ y }: { y: Value<number> }) =>
event(
[
{
nativeEvent: {
contentOffset: { y }
}
}
],
{ useNativeDriver: true }
);
// const onScroll = ({ y }: { y: Value<number> }) =>
// event(
// [
// {
// nativeEvent: {
// contentOffset: { y }
// }
// }
// ],
// { useNativeDriver: true }
// );
export { IListProps };
@ -71,8 +71,8 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
private animated = false;
private jumping = false;
private cancelJump = false;
private y = new Value(0);
private onScroll = onScroll({ y: this.y });
// private y = new Value(0);
// private onScroll = onScroll({ y: this.y });
private unsubscribeFocus: () => void;
private viewabilityConfig = {
itemVisiblePercentThreshold: 10
@ -367,7 +367,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
<EmptyRoom rid={rid} length={messages.length} mounted={this.mounted} />
<RefreshControl refreshing={refreshing} onRefresh={this.onRefresh}>
<List
onScroll={this.onScroll}
// onScroll={this.onScroll}
scrollEventThrottle={16}
listRef={listRef}
data={messages}
@ -379,7 +379,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
viewabilityConfig={this.viewabilityConfig}
/>
</RefreshControl>
<NavBottomFAB y={this.y} onPress={this.jumpToBottom} isThread={!!tmid} />
{/* <NavBottomFAB y={this.y} onPress={this.jumpToBottom} isThread={!!tmid} /> */}
</>
);
}

View File

@ -362,7 +362,7 @@ class RightButtonsContainer extends Component<IRightButtonsProps, IRigthButtonsS
}
return (
<HeaderButton.Container>
{rid ? <HeaderCallButton rid={rid} /> : null}
{/* {rid ? <HeaderCallButton rid={rid} /> : null} */}
{threadsEnabled ? (
<HeaderButton.Item
iconName='threads'