Files
safe-wallet/apps/mobile/__mocks__/react-native-collapsible-tab-view.tsx
Clóvis NetoandGitHub 9295be2506 Feat(Mobile): Account Management: Edit and reorganise accounts (#4721)
* feat: install necessary packages for sortable functionallity

* chore: move active chain information to be under activeSafe to avoid duplicated source of truth and better and domain centralization

* feat: allow safeList consumer to remove the horizontal padding if he/she/they wants

* feat: add edit accounts functionality

* fix: unit tests

* fix: improve seperation of concern between sortable and edit/remove accounts

* fix: improve code readability

* fix: generated yarn.lock

* feat: cover Assets feature with unit tests

* chore: improve test reliability

* fix: remove inline style

* fix: use selectors and dispatch from useApp hooks

* fix: lint

* feat: cover NFTs container

* chore: cover my accounts functionality with unit tests

* fix: AccountItem lint
2025-01-03 14:54:04 +01:00

26 lines
681 B
TypeScript

import React from 'react'
import { View, FlatList } from 'react-native'
export const Tabs = {
Container: ({ children, renderTabBar }) => (
<View>
{renderTabBar && renderTabBar({ index: 0, routes: [] })}
{children}
</View>
),
Tab: ({ children }: { children: React.ReactNode }) => <View>{children}</View>,
FlashList: FlatList,
FlatList: FlatList,
useTabsContext: () => ({
focusedTab: '',
tabNames: [],
index: 0,
routes: [],
jumpTo: jest.fn(),
}),
useTabNameContext: () => ({ tabName: 'Tokens' }),
ScrollView: ({ children }: { children: React.ReactNode }) => <View testID="fallback">{children}</View>,
}
export default Tabs