Skip to content

Commit 9c33118

Browse files
committed
all FlashLists added
1 parent 5c30e47 commit 9c33118

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/docs/data-management/API-EXAMPLE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import { ArticleEntity } from '@baca/api/types'
2727
import { Loader, Center, Text, Box, Spacer } from '@baca/design-system'
2828
import { useScreenOptions, useTranslation } from '@baca/hooks'
2929
import { useCallback } from 'react'
30-
import { ListRenderItem, FlatList } from 'react-native'
30+
import { FlashList } from '@shopify/flash-list'
31+
import { ListRenderItem } from 'react-native'
3132

3233
export const DataFromBeScreen_EXAMPLE = () => {
3334
const { t } = useTranslation()
@@ -56,7 +57,7 @@ export const DataFromBeScreen_EXAMPLE = () => {
5657
<Text.XlRegular>THIS IS EXAMPLE SCREEN</Text.XlRegular>
5758
<Text.XlRegular>which contains data from backend</Text.XlRegular>
5859
<Spacer y="1" />
59-
<FlatList
60+
<FlashList
6061
ListEmptyComponent={
6162
!isInitialLoadingArticles ? (
6263
<Center height={400} flex={1}>

src/design-system/modals/FullScreenModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import { Box } from '@baca/design-system'
12
import { useBoolean, useImperativeHandle } from '@baca/hooks'
23
import { RefObject } from 'react'
34
import { Modal, ModalProps } from 'react-native'
45

5-
import { Box } from '../components'
6-
76
export type ModalMethods = {
87
present: () => void
98
close: () => void

0 commit comments

Comments
 (0)