This commit is contained in:
Diego Mello 2023-07-14 09:26:10 -03:00
parent 1047d4b509
commit 7dc76b3c2d
5 changed files with 1 additions and 29 deletions

View File

@ -36,8 +36,8 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new SSLPinningPackage());
packages.add(new RNCViewPagerPackage());
packages.add(new SSLPinningPackage());
List<ReactPackage> additionalModules = new AdditionalModules().getAdditionalModules(MainApplication.this);
packages.addAll(additionalModules);
return packages;

View File

@ -11,14 +11,6 @@ apply from: file("../node_modules/@react-native-community/cli-platform-android/n
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
// includeBuild('../node_modules/react-native') {
// dependencySubstitution {
// substitute(module("com.facebook.react:react-android")).using(project(":ReactAndroid"))
// substitute(module("com.facebook.react:react-native")).using(project(":ReactAndroid"))
// substitute(module("com.facebook.react:hermes-android")).using(project(":ReactAndroid:hermes-engine"))
// substitute(module("com.facebook.react:hermes-engine")).using(project(":ReactAndroid:hermes-engine"))
// }
// }
includeBuild('../node_modules/react-native') {
dependencySubstitution {
substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid"))

View File

@ -402,9 +402,7 @@ function disconnect() {
async function getServerInfo(server: string) {
try {
const response = await RNFetchBlob.fetch('GET', `${server}/api/info`, { ...RocketChatSettings.customHeaders });
// const response = await fetch(`${server}/api/info`, { ...RocketChatSettings.customHeaders })
try {
console.log('🚀 ~ file: connect.ts:406 ~ getServerInfo ~ response:', response);
// Try to resolve as json
const jsonRes: { version?: string; success: boolean } = response.json();
if (!jsonRes?.success) {

View File

@ -233,8 +233,6 @@ const DrawerNavigator = () => {
<Drawer.Navigator
// @ts-ignore
drawerContent={({ navigation, state }) => <Sidebar navigation={navigation} state={state} />}
// Performance issues on Android when disabled
// useLegacyImplementation
screenOptions={{
swipeEnabled: false,
headerShown: false,

View File

@ -3,7 +3,6 @@ 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 { Observable, Subscription } from 'rxjs';
import ActivityIndicator from '../../../containers/ActivityIndicator';
@ -14,7 +13,6 @@ 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 { loadMissedMessages, loadThreadMessages } from '../../../lib/methods';
import { Services } from '../../../lib/services';
import RefreshControl from './RefreshControl';
@ -31,18 +29,6 @@ const styles = StyleSheet.create({
}
});
// const onScroll = ({ y }: { y: Value<number> }) =>
// event(
// [
// {
// nativeEvent: {
// contentOffset: { y }
// }
// }
// ],
// { useNativeDriver: true }
// );
export { type IListProps };
export interface IListContainerProps {
@ -71,8 +57,6 @@ 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 unsubscribeFocus: () => void;
private viewabilityConfig = {
itemVisiblePercentThreshold: 10