Temp remove some files. Android is working.
This commit is contained in:
parent
6c1f0729b7
commit
aac60ea031
|
@ -3,7 +3,7 @@ import { dequal } from 'dequal';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FlatListProps, View, ViewToken, StyleSheet, Platform } from 'react-native';
|
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 { Observable, Subscription } from 'rxjs';
|
||||||
|
|
||||||
import ActivityIndicator from '../../../containers/ActivityIndicator';
|
import ActivityIndicator from '../../../containers/ActivityIndicator';
|
||||||
|
@ -14,7 +14,7 @@ import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimat
|
||||||
import log from '../../../lib/methods/helpers/log';
|
import log from '../../../lib/methods/helpers/log';
|
||||||
import EmptyRoom from '../EmptyRoom';
|
import EmptyRoom from '../EmptyRoom';
|
||||||
import List, { IListProps, TListRef } from './List';
|
import List, { IListProps, TListRef } from './List';
|
||||||
import NavBottomFAB from './NavBottomFAB';
|
// import NavBottomFAB from './NavBottomFAB';
|
||||||
import { loadMissedMessages, loadThreadMessages } from '../../../lib/methods';
|
import { loadMissedMessages, loadThreadMessages } from '../../../lib/methods';
|
||||||
import { Services } from '../../../lib/services';
|
import { Services } from '../../../lib/services';
|
||||||
import RefreshControl from './RefreshControl';
|
import RefreshControl from './RefreshControl';
|
||||||
|
@ -31,17 +31,17 @@ const styles = StyleSheet.create({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const onScroll = ({ y }: { y: Value<number> }) =>
|
// const onScroll = ({ y }: { y: Value<number> }) =>
|
||||||
event(
|
// event(
|
||||||
[
|
// [
|
||||||
{
|
// {
|
||||||
nativeEvent: {
|
// nativeEvent: {
|
||||||
contentOffset: { y }
|
// contentOffset: { y }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
{ useNativeDriver: true }
|
// { useNativeDriver: true }
|
||||||
);
|
// );
|
||||||
|
|
||||||
export { IListProps };
|
export { IListProps };
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
private animated = false;
|
private animated = false;
|
||||||
private jumping = false;
|
private jumping = false;
|
||||||
private cancelJump = false;
|
private cancelJump = false;
|
||||||
private y = new Value(0);
|
// private y = new Value(0);
|
||||||
private onScroll = onScroll({ y: this.y });
|
// private onScroll = onScroll({ y: this.y });
|
||||||
private unsubscribeFocus: () => void;
|
private unsubscribeFocus: () => void;
|
||||||
private viewabilityConfig = {
|
private viewabilityConfig = {
|
||||||
itemVisiblePercentThreshold: 10
|
itemVisiblePercentThreshold: 10
|
||||||
|
@ -367,7 +367,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
<EmptyRoom rid={rid} length={messages.length} mounted={this.mounted} />
|
<EmptyRoom rid={rid} length={messages.length} mounted={this.mounted} />
|
||||||
<RefreshControl refreshing={refreshing} onRefresh={this.onRefresh}>
|
<RefreshControl refreshing={refreshing} onRefresh={this.onRefresh}>
|
||||||
<List
|
<List
|
||||||
onScroll={this.onScroll}
|
// onScroll={this.onScroll}
|
||||||
scrollEventThrottle={16}
|
scrollEventThrottle={16}
|
||||||
listRef={listRef}
|
listRef={listRef}
|
||||||
data={messages}
|
data={messages}
|
||||||
|
@ -379,7 +379,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
viewabilityConfig={this.viewabilityConfig}
|
viewabilityConfig={this.viewabilityConfig}
|
||||||
/>
|
/>
|
||||||
</RefreshControl>
|
</RefreshControl>
|
||||||
<NavBottomFAB y={this.y} onPress={this.jumpToBottom} isThread={!!tmid} />
|
{/* <NavBottomFAB y={this.y} onPress={this.jumpToBottom} isThread={!!tmid} /> */}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -362,7 +362,7 @@ class RightButtonsContainer extends Component<IRightButtonsProps, IRigthButtonsS
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<HeaderButton.Container>
|
<HeaderButton.Container>
|
||||||
{rid ? <HeaderCallButton rid={rid} /> : null}
|
{/* {rid ? <HeaderCallButton rid={rid} /> : null} */}
|
||||||
{threadsEnabled ? (
|
{threadsEnabled ? (
|
||||||
<HeaderButton.Item
|
<HeaderButton.Item
|
||||||
iconName='threads'
|
iconName='threads'
|
||||||
|
|
Loading…
Reference in New Issue