Skip to content

Commit

Permalink
Increase number of initial and increment renders in Feed component.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisParedes1 committed Nov 6, 2023
1 parent 78e5c83 commit 1af3958
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/screens/feed/list.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { useNavigation } from '@react-navigation/native';
import React, { useState, useCallback } from 'react';
import React, { useState } from 'react';
import { FlatList } from 'react-native'; // Import FlatList

import type { Snap } from '@/api';
import { useSnaps } from '@/api';
import { getUserState } from '@/core';
import { EmptyList, FocusAwareStatusBar, Text, View } from '@/ui';

import { Card } from './card';

const INCREMENT_RENDER = 5;
const INITIAL_RENDER = 5;
const INCREMENT_RENDER = 10;
const INITIAL_RENDER = 20;

export const Feed = () => {
const currentUser = getUserState();
Expand Down

0 comments on commit 1af3958

Please sign in to comment.