@hero-design/rn 7.3.1 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +5630 -4565
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +5636 -4564
- package/package.json +11 -9
- package/playground/.detoxrc.json +49 -0
- package/playground/.prettierrc.json +8 -0
- package/playground/app.json +9 -0
- package/playground/babel.config.js +63 -0
- package/playground/e2e/config.json +9 -0
- package/playground/e2e/environment.js +23 -0
- package/playground/e2e/firstTest.e2e.js +16 -0
- package/{expoEntry.js → playground/expoEntry.js} +1 -1
- package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
- package/playground/fonts/hero-icons.ttf +0 -0
- package/playground/index.js +7 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +9 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +75 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +6 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +21 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +85 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +3 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +8 -0
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +40 -0
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +16 -0
- package/playground/ios/MobileHeroDesignPlayground/main.m +10 -0
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +4 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +515 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +88 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +10 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/playground/ios/Podfile +49 -0
- package/playground/ios/Podfile.lock +478 -0
- package/playground/ios/Podfile.properties.json +3 -0
- package/{metro.config.js → playground/metro.config.js} +10 -2
- package/playground/package.json +63 -0
- package/playground/src/Alert.tsx +80 -0
- package/playground/{index.tsx → src/App.tsx} +63 -29
- package/playground/{components → src}/Avatar.tsx +1 -1
- package/playground/{components → src}/Badge.tsx +1 -1
- package/playground/{components → src}/BottomNavigation.tsx +1 -1
- package/playground/src/BottomSheet.tsx +43 -0
- package/playground/{components → src}/Button.tsx +1 -1
- package/playground/{components → src}/Card.tsx +1 -1
- package/playground/{components → src}/Collapse.tsx +1 -1
- package/playground/src/ContentNavigator.tsx +65 -0
- package/playground/{components → src}/Divider.tsx +1 -1
- package/playground/{components → src}/Drawer.tsx +1 -1
- package/playground/{components → src}/FAB.tsx +1 -1
- package/playground/{components → src}/Icon.tsx +7 -3
- package/playground/{components → src}/IconButton.tsx +12 -1
- package/playground/src/MultipleThemes.tsx +34 -0
- package/playground/{components → src}/Progress.tsx +1 -1
- package/playground/src/Radio.tsx +25 -0
- package/playground/src/SectionHeading.tsx +68 -0
- package/playground/src/Spinner.tsx +19 -0
- package/playground/{components → src}/Tabs.tsx +1 -1
- package/playground/{components → src}/Tag.tsx +1 -1
- package/playground/src/TextInput.tsx +14 -0
- package/playground/{components → src}/Typography.tsx +1 -1
- package/playground/src/emotion.d.ts +7 -0
- package/playground/tsconfig.json +21 -0
- package/src/components/Alert/StyledAlert.tsx +48 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
- package/src/components/Alert/__tests__/index.spec.tsx +83 -0
- package/src/components/Alert/index.tsx +109 -0
- package/src/components/BottomSheet/Footer.tsx +19 -0
- package/src/components/BottomSheet/Header.tsx +49 -0
- package/src/components/BottomSheet/StyledBottomSheet.tsx +75 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +531 -0
- package/src/components/BottomSheet/__tests__/index.spec.tsx +107 -0
- package/src/components/BottomSheet/index.tsx +171 -0
- package/src/components/Button/IconButton.tsx +11 -1
- package/src/components/Card/index.tsx +1 -1
- package/src/components/Collapse/StyledCollapse.tsx +11 -2
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +36 -31
- package/src/components/Collapse/__tests__/index.spec.tsx +1 -13
- package/src/components/Collapse/index.tsx +20 -50
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +15 -0
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +19 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +43 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +217 -0
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +74 -0
- package/src/components/ContentNavigator/index.tsx +65 -0
- package/src/components/Icon/HeroIcon/index.tsx +13 -2
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +8 -0
- package/src/components/Icon/index.tsx +8 -1
- package/src/components/Radio/Radio.tsx +51 -0
- package/src/components/Radio/RadioGroup.tsx +50 -0
- package/src/components/Radio/StyledRadio.tsx +42 -0
- package/src/components/Radio/__tests__/Radio.spec.tsx +38 -0
- package/src/components/Radio/__tests__/RadioGroup.spec.tsx +36 -0
- package/src/components/Radio/__tests__/StyledRadio.spec.tsx +43 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +160 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +248 -0
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +124 -0
- package/src/components/Radio/index.tsx +5 -0
- package/src/components/SectionHeading/StyledHeading.tsx +24 -0
- package/src/components/SectionHeading/__tests__/StyledHeading.tsx +28 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.tsx.snap +48 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +208 -0
- package/src/components/SectionHeading/__tests__/index.spec.tsx +39 -0
- package/src/components/SectionHeading/index.tsx +93 -0
- package/src/components/Spinner/AnimatedSpinner.tsx +55 -0
- package/src/components/Spinner/StyledSpinner.tsx +59 -0
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +11 -0
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +56 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +118 -0
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +235 -0
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +141 -0
- package/src/components/Spinner/__tests__/index.spec.tsx +12 -0
- package/src/components/Spinner/index.tsx +22 -0
- package/src/components/TextInput/StyledTextInput.tsx +34 -0
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +33 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +88 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +16 -0
- package/src/components/TextInput/index.tsx +61 -0
- package/src/index.ts +14 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +117 -0
- package/src/theme/components/alert.ts +32 -0
- package/src/theme/components/bottomSheet.ts +34 -0
- package/src/theme/components/contentNavigator.ts +11 -0
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/radio.ts +34 -0
- package/src/theme/components/spinner.ts +21 -0
- package/src/theme/components/textInput.ts +32 -0
- package/src/theme/global/borders.ts +6 -0
- package/src/theme/global/colors.ts +2 -0
- package/src/theme/index.ts +25 -7
- package/tsconfig.json +11 -3
- package/types/components/Alert/StyledAlert.d.ts +37 -0
- package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +42 -0
- package/types/{src/components → components}/Avatar/StyledAvatar.d.ts +0 -1
- package/types/{src/components → components}/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/{src/components/BottomNavigation → components/Avatar}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Avatar/index.d.ts +0 -0
- package/types/{src/components → components}/Badge/Status.d.ts +0 -0
- package/types/{src/components → components}/Badge/StyledBadge.d.ts +0 -1
- package/types/{src/components → components}/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/{src/components → components}/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/{src/components → components}/Badge/index.d.ts +0 -0
- package/types/{src/components → components}/BottomNavigation/StyledBottomNavigation.d.ts +0 -1
- package/types/{src/components/Button/LoadingIndicator → components/BottomNavigation}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +6 -0
- package/types/components/BottomSheet/Header.d.ts +8 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +46 -0
- package/types/{src/components/Button → components/BottomSheet}/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +51 -0
- package/types/{src/components → components}/Button/Button.d.ts +0 -0
- package/types/{src/components → components}/Button/IconButton.d.ts +5 -1
- package/types/{src/components → components}/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -1
- package/types/{src/components → components}/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/{src/components/Card → components/Button/LoadingIndicator}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/{src/components → components}/Button/StyledButton.d.ts +0 -1
- package/types/{src/components → components}/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/index.d.ts +0 -0
- package/types/{src/components → components}/Card/StyledCard.d.ts +0 -1
- package/types/{src/components → components}/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/{src/components/Collapse → components/Card}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Card/index.d.ts +0 -0
- package/types/{src/components → components}/Collapse/StyledCollapse.d.ts +12 -2
- package/types/{src/components → components}/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/{src/components/Drawer → components/Collapse}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Collapse/index.d.ts +1 -5
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +12 -0
- package/types/{src/components/Divider/__tests__/StyledDivider.spec.d.ts → components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts} +0 -0
- package/types/{src/components/FAB → components/ContentNavigator}/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +33 -0
- package/types/{src/components → components}/Divider/StyledDivider.d.ts +0 -1
- package/types/{src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts → components/Divider/__tests__/StyledDivider.spec.d.ts} +0 -0
- package/types/{src/components → components}/Divider/index.d.ts +0 -0
- package/types/{src/components → components}/Drawer/StyledDrawer.d.ts +0 -1
- package/types/{src/components/Icon → components/Drawer}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Drawer/index.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/StyledActionGroup.d.ts +0 -1
- package/types/{src/components → components}/FAB/ActionGroup/StyledActionItem.d.ts +0 -1
- package/types/{src/components → components}/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/index.d.ts +0 -0
- package/types/{src/components → components}/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/{src/components → components}/FAB/FAB.d.ts +0 -0
- package/types/{src/components → components}/FAB/StyledFAB.d.ts +0 -1
- package/types/{src/components/FAB/__tests__/StyledFAB.spec.d.ts → components/FAB/__tests__/AnimatedFABIcon.spec.d.ts} +0 -0
- package/types/{src/components/Progress/__tests__/index.spec.d.ts → components/FAB/__tests__/StyledFAB.spec.d.ts} +0 -0
- package/types/{src/components/Tabs → components/FAB}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/FAB/index.d.ts +0 -0
- package/types/{src/components → components}/Icon/HeroIcon/index.d.ts +1 -2
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/{src/components/Typography/Text → components/Icon}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/{src/components → components}/Progress/ProgressBar.d.ts +0 -0
- package/types/{src/components → components}/Progress/ProgressCircle.d.ts +0 -0
- package/types/{src/components → components}/Progress/StyledProgressBar.d.ts +0 -1
- package/types/{src/components → components}/Progress/StyledProgressCircle.d.ts +0 -1
- package/types/{src/theme → components/Progress}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Progress/index.d.ts +0 -0
- package/types/{src/components → components}/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +26 -0
- package/types/components/Radio/RadioGroup.d.ts +29 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/{src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts → components/Radio/__tests__/Radio.spec.d.ts} +0 -0
- package/types/{src/components/Tag/__tests__/Tag.spec.d.ts → components/Radio/__tests__/RadioGroup.spec.d.ts} +0 -0
- package/types/{src/components/Typography/Text/__tests__/StyledText.spec.d.ts → components/Radio/__tests__/StyledRadio.spec.d.ts} +0 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
- package/types/{src/utils/__tests__/scale.spec.d.ts → components/SectionHeading/__tests__/StyledHeading.d.ts} +0 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +1 -0
- package/types/components/SectionHeading/index.d.ts +39 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -0
- package/types/components/Spinner/StyledSpinner.d.ts +30 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +10 -0
- package/types/{src/components → components}/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/{src/components → components}/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/{src/components → components}/Tabs/StyledScrollableTabs.d.ts +0 -1
- package/types/{src/components → components}/Tabs/StyledTabs.d.ts +0 -1
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/types/{src/components → components}/Tabs/index.d.ts +0 -0
- package/types/{src/components → components}/Tabs/utils.d.ts +0 -0
- package/types/{src/components → components}/Tag/StyledTag.d.ts +0 -1
- package/types/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/types/{src/components → components}/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +22 -0
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +1 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +1 -0
- package/types/components/TextInput/index.d.ts +26 -0
- package/types/{src/components → components}/Typography/Text/StyledText.d.ts +0 -1
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/types/{src/components → components}/Typography/Text/index.d.ts +0 -0
- package/types/{src/components → components}/Typography/index.d.ts +0 -0
- package/types/{src/index.d.ts → index.d.ts} +8 -1
- package/types/{src/testHelpers → testHelpers}/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +1 -0
- package/types/theme/components/alert.d.ts +23 -0
- package/types/{src/theme → theme}/components/avatar.d.ts +0 -0
- package/types/{src/theme → theme}/components/badge.d.ts +0 -0
- package/types/{src/theme → theme}/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +29 -0
- package/types/{src/theme → theme}/components/button.d.ts +0 -0
- package/types/{src/theme → theme}/components/card.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/{src/theme → theme}/components/divider.d.ts +0 -0
- package/types/{src/theme → theme}/components/drawer.d.ts +0 -0
- package/types/{src/theme → theme}/components/fab.d.ts +0 -0
- package/types/{src/theme → theme}/components/icon.d.ts +1 -0
- package/types/{src/theme → theme}/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +25 -0
- package/types/theme/components/spinner.d.ts +15 -0
- package/types/{src/theme → theme}/components/tabs.d.ts +0 -0
- package/types/{src/theme → theme}/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +24 -0
- package/types/{src/theme → theme}/components/typography.d.ts +0 -0
- package/types/{src/theme → theme}/global/borders.d.ts +3 -0
- package/types/{src/theme → theme}/global/colors.d.ts +2 -0
- package/types/{src/theme → theme}/global/index.d.ts +2 -0
- package/types/{src/theme → theme}/global/scale.d.ts +0 -0
- package/types/{src/theme → theme}/global/space.d.ts +0 -0
- package/types/{src/theme → theme}/global/typography.d.ts +0 -0
- package/types/{src/theme → theme}/index.d.ts +17 -5
- package/types/{src/types.d.ts → types.d.ts} +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +1 -0
- package/types/{src/utils → utils}/helpers.d.ts +0 -0
- package/types/{src/utils → utils}/hooks.d.ts +0 -0
- package/types/{src/utils → utils}/scale.d.ts +0 -0
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-test.log +0 -131
- package/.turbo/turbo-type-check.log +0 -7
- package/app.json +0 -8
- package/types/playground/components/Avatar.d.ts +0 -2
- package/types/playground/components/Badge.d.ts +0 -2
- package/types/playground/components/BottomNavigation.d.ts +0 -2
- package/types/playground/components/Button.d.ts +0 -2
- package/types/playground/components/Card.d.ts +0 -2
- package/types/playground/components/Collapse.d.ts +0 -2
- package/types/playground/components/Divider.d.ts +0 -2
- package/types/playground/components/Drawer.d.ts +0 -2
- package/types/playground/components/FAB.d.ts +0 -2
- package/types/playground/components/Icon.d.ts +0 -2
- package/types/playground/components/IconButton.d.ts +0 -2
- package/types/playground/components/Progress.d.ts +0 -2
- package/types/playground/components/Tabs.d.ts +0 -2
- package/types/playground/components/Tag.d.ts +0 -2
- package/types/playground/components/Typography.d.ts +0 -2
- package/types/playground/index.d.ts +0 -2
- package/types/src/components/Icon/IconList.d.ts +0 -2
- package/types/src/components/Icon/utils.d.ts +0 -2
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import React, {
|
|
2
|
+
ReactElement,
|
|
3
|
+
ReactNode,
|
|
4
|
+
useEffect,
|
|
5
|
+
useRef,
|
|
6
|
+
useState,
|
|
7
|
+
} from 'react';
|
|
8
|
+
import { Animated, Easing, Modal, StyleProp, ViewStyle } from 'react-native';
|
|
9
|
+
import Footer from './Footer';
|
|
10
|
+
import Header from './Header';
|
|
11
|
+
import {
|
|
12
|
+
StyledBackdrop,
|
|
13
|
+
StyledBottomSheet,
|
|
14
|
+
StyledWrapper,
|
|
15
|
+
} from './StyledBottomSheet';
|
|
16
|
+
|
|
17
|
+
interface BottomSheetProps {
|
|
18
|
+
/**
|
|
19
|
+
* Bottom sheet open state.
|
|
20
|
+
*/
|
|
21
|
+
open: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Bottom sheet's header.
|
|
24
|
+
*/
|
|
25
|
+
header?: string | ReactElement;
|
|
26
|
+
/**
|
|
27
|
+
* Bottom sheet's footer.
|
|
28
|
+
*/
|
|
29
|
+
footer?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Bottom sheet's content.
|
|
32
|
+
*/
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Callback is called when the Bottom Sheet is opened.
|
|
36
|
+
*/
|
|
37
|
+
onOpen?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback is called when the user taps the back button on Android or when the bottom sheet
|
|
40
|
+
* is being dismiss by interacting outside of the bottom sheet.
|
|
41
|
+
*/
|
|
42
|
+
onRequestClose?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Displays an X button on bottom sheet header that will invoke onRequestClose callback on press.
|
|
45
|
+
*/
|
|
46
|
+
showCloseButton?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Enable the bottom sheet's backdrop.
|
|
49
|
+
*/
|
|
50
|
+
hasBackdrop?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Displays dividers between header, footer and body.
|
|
53
|
+
*/
|
|
54
|
+
showDivider?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Additional style.
|
|
57
|
+
*/
|
|
58
|
+
style?: StyleProp<ViewStyle>;
|
|
59
|
+
/**
|
|
60
|
+
* Testing id of the component.
|
|
61
|
+
*/
|
|
62
|
+
testID?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const BottomSheet = ({
|
|
66
|
+
open,
|
|
67
|
+
header,
|
|
68
|
+
footer,
|
|
69
|
+
children,
|
|
70
|
+
onOpen,
|
|
71
|
+
onRequestClose,
|
|
72
|
+
showCloseButton = true,
|
|
73
|
+
hasBackdrop = true,
|
|
74
|
+
showDivider = true,
|
|
75
|
+
style,
|
|
76
|
+
testID,
|
|
77
|
+
}: BottomSheetProps): JSX.Element => {
|
|
78
|
+
const [height, setHeight] = useState<number>(0);
|
|
79
|
+
|
|
80
|
+
// Internal state to control modal open/close timing with animation
|
|
81
|
+
const [visible, setVisibility] = useState<boolean>(open);
|
|
82
|
+
const animatedValue = useRef(new Animated.Value(open ? 0 : 1));
|
|
83
|
+
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
// Show the modal before the open animation start
|
|
86
|
+
if (open && !visible) {
|
|
87
|
+
setVisibility(open);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Delay closing the modal until after the closing animation end
|
|
91
|
+
animatedValue.current.removeAllListeners();
|
|
92
|
+
animatedValue.current.addListener(({ value }) => {
|
|
93
|
+
const endValueOfTransition = open ? 1 : 0;
|
|
94
|
+
if (endValueOfTransition === 0 && value === endValueOfTransition) {
|
|
95
|
+
setVisibility(false);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
return () => animatedValue.current.removeAllListeners();
|
|
100
|
+
}, [open]);
|
|
101
|
+
|
|
102
|
+
// Animation
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
const animation = Animated.timing(animatedValue.current, {
|
|
105
|
+
toValue: open ? 1 : 0,
|
|
106
|
+
easing: Easing.inOut(Easing.cubic),
|
|
107
|
+
useNativeDriver: true,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
animation.start();
|
|
111
|
+
|
|
112
|
+
return () => animation.stop();
|
|
113
|
+
}, [open]);
|
|
114
|
+
|
|
115
|
+
const interpolateY = animatedValue.current.interpolate({
|
|
116
|
+
inputRange: [0, 1],
|
|
117
|
+
outputRange: [height, 0],
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// Backdrop opacity
|
|
121
|
+
const interpolateOpacity = hasBackdrop
|
|
122
|
+
? animatedValue.current.interpolate({
|
|
123
|
+
inputRange: [0, 1],
|
|
124
|
+
outputRange: [0, 0.48],
|
|
125
|
+
})
|
|
126
|
+
: 0;
|
|
127
|
+
|
|
128
|
+
return (
|
|
129
|
+
<Modal
|
|
130
|
+
visible={visible}
|
|
131
|
+
onRequestClose={onRequestClose}
|
|
132
|
+
transparent
|
|
133
|
+
testID={testID}
|
|
134
|
+
onShow={onOpen}
|
|
135
|
+
>
|
|
136
|
+
<StyledWrapper pointerEvents="box-none">
|
|
137
|
+
<StyledBackdrop
|
|
138
|
+
style={{ opacity: interpolateOpacity }}
|
|
139
|
+
onPress={onRequestClose}
|
|
140
|
+
/>
|
|
141
|
+
<StyledBottomSheet
|
|
142
|
+
onLayout={({ nativeEvent }) => setHeight(nativeEvent.layout.height)}
|
|
143
|
+
style={[
|
|
144
|
+
style,
|
|
145
|
+
{
|
|
146
|
+
transform: [
|
|
147
|
+
{ scaleY: height > 0 ? 1 : 0 },
|
|
148
|
+
{
|
|
149
|
+
translateY: interpolateY,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
]}
|
|
154
|
+
>
|
|
155
|
+
{header !== undefined ? (
|
|
156
|
+
<Header
|
|
157
|
+
content={header}
|
|
158
|
+
showDivider={showDivider}
|
|
159
|
+
onRequestClose={onRequestClose}
|
|
160
|
+
showCloseButton={showCloseButton}
|
|
161
|
+
/>
|
|
162
|
+
) : null}
|
|
163
|
+
{children}
|
|
164
|
+
{footer ? <Footer showDivider={showDivider}>{footer}</Footer> : null}
|
|
165
|
+
</StyledBottomSheet>
|
|
166
|
+
</StyledWrapper>
|
|
167
|
+
</Modal>
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export default BottomSheet;
|
|
@@ -18,6 +18,10 @@ export interface IconButtonProps {
|
|
|
18
18
|
* Name of the Icon.
|
|
19
19
|
*/
|
|
20
20
|
icon: IconName;
|
|
21
|
+
/**
|
|
22
|
+
* Disable state of button.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* Intent of the Icon.
|
|
23
27
|
*/
|
|
@@ -44,6 +48,7 @@ const IconButton = ({
|
|
|
44
48
|
hitSlop,
|
|
45
49
|
onPress,
|
|
46
50
|
icon,
|
|
51
|
+
disabled,
|
|
47
52
|
testID,
|
|
48
53
|
style,
|
|
49
54
|
size,
|
|
@@ -54,8 +59,13 @@ const IconButton = ({
|
|
|
54
59
|
onPress={onPress}
|
|
55
60
|
testID={testID}
|
|
56
61
|
hitSlop={hitSlop}
|
|
62
|
+
disabled={disabled}
|
|
57
63
|
>
|
|
58
|
-
<Icon
|
|
64
|
+
<Icon
|
|
65
|
+
icon={icon}
|
|
66
|
+
size={size}
|
|
67
|
+
intent={disabled ? 'disabled-text' : intent}
|
|
68
|
+
/>
|
|
59
69
|
</TouchableOpacity>
|
|
60
70
|
);
|
|
61
71
|
|
|
@@ -26,7 +26,7 @@ const Card = ({
|
|
|
26
26
|
children,
|
|
27
27
|
...nativeProps
|
|
28
28
|
}: CardProps): JSX.Element => (
|
|
29
|
-
<StyledCard {...nativeProps}
|
|
29
|
+
<StyledCard {...nativeProps} themeVariant={variant}>
|
|
30
30
|
{variant === 'data' && <LeftDataCard testID="data-card-indicator" />}
|
|
31
31
|
{children}
|
|
32
32
|
</StyledCard>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, View } from 'react-native';
|
|
1
|
+
import { Animated, Dimensions, View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
3
|
|
|
4
4
|
const StyledWrapper = styled(Animated.View)(() => ({
|
|
@@ -7,9 +7,18 @@ const StyledWrapper = styled(Animated.View)(() => ({
|
|
|
7
7
|
overflow: 'hidden',
|
|
8
8
|
}));
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Height need to be high enough to cover most scenario
|
|
12
|
+
* This container's purpose is only to help get correct children height and returns it
|
|
13
|
+
* to use with Animated.timing
|
|
14
|
+
*/
|
|
15
|
+
const StyledHiddenWrapper = styled(View)(() => ({
|
|
16
|
+
height: Dimensions.get('window').height,
|
|
17
|
+
}));
|
|
18
|
+
|
|
10
19
|
const StyledChildWrapper = styled(View)(() => ({
|
|
11
20
|
margin: 0,
|
|
12
21
|
padding: 0,
|
|
13
22
|
}));
|
|
14
23
|
|
|
15
|
-
export { StyledWrapper, StyledChildWrapper };
|
|
24
|
+
export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
|
|
@@ -4,11 +4,10 @@ exports[`Collapse renders correctly 1`] = `
|
|
|
4
4
|
<View
|
|
5
5
|
collapsable={false}
|
|
6
6
|
nativeID="animatedComponent"
|
|
7
|
-
onLayout={[Function]}
|
|
8
7
|
style={
|
|
9
8
|
Object {
|
|
9
|
+
"height": 0,
|
|
10
10
|
"margin": 0,
|
|
11
|
-
"maxHeight": "0%",
|
|
12
11
|
"overflow": "hidden",
|
|
13
12
|
"padding": 0,
|
|
14
13
|
}
|
|
@@ -19,46 +18,40 @@ exports[`Collapse renders correctly 1`] = `
|
|
|
19
18
|
style={
|
|
20
19
|
Array [
|
|
21
20
|
Object {
|
|
22
|
-
"
|
|
23
|
-
"padding": 0,
|
|
21
|
+
"height": 1334,
|
|
24
22
|
},
|
|
25
23
|
undefined,
|
|
26
24
|
]
|
|
27
25
|
}
|
|
28
26
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
<View
|
|
28
|
+
onLayout={[Function]}
|
|
29
|
+
style={
|
|
30
|
+
Array [
|
|
31
|
+
Object {
|
|
32
|
+
"margin": 0,
|
|
33
|
+
"padding": 0,
|
|
34
|
+
},
|
|
35
|
+
undefined,
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
>
|
|
39
|
+
<Text>
|
|
40
|
+
Sample Text
|
|
41
|
+
</Text>
|
|
42
|
+
</View>
|
|
32
43
|
</View>
|
|
33
44
|
</View>
|
|
34
45
|
`;
|
|
35
46
|
|
|
36
|
-
exports[`Collapse should not render Sample Text 1`] = `
|
|
37
|
-
<View
|
|
38
|
-
collapsable={false}
|
|
39
|
-
nativeID="animatedComponent"
|
|
40
|
-
onLayout={[Function]}
|
|
41
|
-
style={
|
|
42
|
-
Object {
|
|
43
|
-
"margin": 0,
|
|
44
|
-
"maxHeight": "0%",
|
|
45
|
-
"overflow": "hidden",
|
|
46
|
-
"padding": 0,
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
testID="collapse"
|
|
50
|
-
/>
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
47
|
exports[`Collapse should render Sample Text but not visible 1`] = `
|
|
54
48
|
<View
|
|
55
49
|
collapsable={false}
|
|
56
50
|
nativeID="animatedComponent"
|
|
57
|
-
onLayout={[Function]}
|
|
58
51
|
style={
|
|
59
52
|
Object {
|
|
53
|
+
"height": 0,
|
|
60
54
|
"margin": 0,
|
|
61
|
-
"maxHeight": "0%",
|
|
62
55
|
"overflow": "hidden",
|
|
63
56
|
"padding": 0,
|
|
64
57
|
}
|
|
@@ -69,16 +62,28 @@ exports[`Collapse should render Sample Text but not visible 1`] = `
|
|
|
69
62
|
style={
|
|
70
63
|
Array [
|
|
71
64
|
Object {
|
|
72
|
-
"
|
|
73
|
-
"padding": 0,
|
|
65
|
+
"height": 1334,
|
|
74
66
|
},
|
|
75
67
|
undefined,
|
|
76
68
|
]
|
|
77
69
|
}
|
|
78
70
|
>
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
<View
|
|
72
|
+
onLayout={[Function]}
|
|
73
|
+
style={
|
|
74
|
+
Array [
|
|
75
|
+
Object {
|
|
76
|
+
"margin": 0,
|
|
77
|
+
"padding": 0,
|
|
78
|
+
},
|
|
79
|
+
undefined,
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
<Text>
|
|
84
|
+
Sample Text
|
|
85
|
+
</Text>
|
|
86
|
+
</View>
|
|
82
87
|
</View>
|
|
83
88
|
</View>
|
|
84
89
|
`;
|
|
@@ -16,21 +16,9 @@ describe('Collapse', () => {
|
|
|
16
16
|
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
it('should not render Sample Text', () => {
|
|
20
|
-
const wrapper = renderWithTheme(
|
|
21
|
-
<Collapse testID="collapse">
|
|
22
|
-
<Text>Sample Text</Text>
|
|
23
|
-
</Collapse>
|
|
24
|
-
);
|
|
25
|
-
expect(wrapper.queryAllByTestId('collapse')).toHaveLength(1);
|
|
26
|
-
expect(wrapper.queryByText('Sample Text')).toBeNull();
|
|
27
|
-
|
|
28
|
-
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
19
|
it('should render Sample Text but not visible', () => {
|
|
32
20
|
const wrapper = renderWithTheme(
|
|
33
|
-
<Collapse testID="collapse"
|
|
21
|
+
<Collapse testID="collapse">
|
|
34
22
|
<Text>Sample Text</Text>
|
|
35
23
|
</Collapse>
|
|
36
24
|
);
|
|
@@ -5,21 +5,19 @@ import {
|
|
|
5
5
|
ViewProps,
|
|
6
6
|
ViewStyle,
|
|
7
7
|
} from 'react-native';
|
|
8
|
-
import React, { ReactNode, useCallback, useEffect
|
|
9
|
-
import {
|
|
8
|
+
import React, { ReactNode, useCallback, useEffect } from 'react';
|
|
9
|
+
import {
|
|
10
|
+
StyledChildWrapper,
|
|
11
|
+
StyledHiddenWrapper,
|
|
12
|
+
StyledWrapper,
|
|
13
|
+
} from './StyledCollapse';
|
|
10
14
|
import { usePrevious } from '../../utils/hooks';
|
|
11
15
|
|
|
12
|
-
type HeightSource = 'percent' | 'container';
|
|
13
|
-
|
|
14
16
|
interface CollapseProps extends ViewProps {
|
|
15
17
|
/*
|
|
16
18
|
* The collapse's content.
|
|
17
19
|
*/
|
|
18
20
|
children: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the child components will remain mounted when the Collapse is closed.
|
|
21
|
-
*/
|
|
22
|
-
keepChildrenMounted?: boolean;
|
|
23
21
|
/**
|
|
24
22
|
* Whether the component is open or closed.
|
|
25
23
|
*/
|
|
@@ -34,74 +32,46 @@ interface CollapseProps extends ViewProps {
|
|
|
34
32
|
testID?: string;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
const Collapse = ({
|
|
38
|
-
open = false,
|
|
39
|
-
keepChildrenMounted = false,
|
|
40
|
-
children,
|
|
41
|
-
testID,
|
|
42
|
-
style,
|
|
43
|
-
}: CollapseProps) => {
|
|
35
|
+
const Collapse = ({ open = false, children, testID, style }: CollapseProps) => {
|
|
44
36
|
const collapseAnim = React.useRef(new Animated.Value(0)).current;
|
|
45
|
-
const innerRef = React.useRef(null);
|
|
46
37
|
const [contentHeight, setContentHeight] = React.useState<number>(0);
|
|
47
|
-
const [maxHeight, setMaxHeight] = React.useState<number>(0);
|
|
48
|
-
const [isWaitingToClose, setIsWaitingToClose] = useState<boolean>(false);
|
|
49
|
-
const [heightSource, setHeightSource] = useState<HeightSource>('percent');
|
|
50
38
|
|
|
51
39
|
const previousOpenState = usePrevious(open);
|
|
52
40
|
|
|
53
|
-
const animatedCallback = useCallback(() => {
|
|
54
|
-
if (open === true) {
|
|
55
|
-
setIsWaitingToClose(true);
|
|
56
|
-
setMaxHeight(contentHeight);
|
|
57
|
-
} else {
|
|
58
|
-
setIsWaitingToClose(false);
|
|
59
|
-
}
|
|
60
|
-
}, [open, contentHeight]);
|
|
61
|
-
|
|
62
41
|
useEffect(() => {
|
|
63
42
|
if (open !== previousOpenState && previousOpenState !== undefined) {
|
|
64
|
-
const useHeightValue = maxHeight || 100;
|
|
65
|
-
setHeightSource(useHeightValue > 100 ? 'container' : 'percent');
|
|
66
43
|
Animated.timing(collapseAnim, {
|
|
67
|
-
toValue: open ?
|
|
44
|
+
toValue: open ? contentHeight : 0,
|
|
68
45
|
easing: Easing.inOut(Easing.ease),
|
|
69
46
|
useNativeDriver: false,
|
|
70
|
-
}).start(
|
|
47
|
+
}).start();
|
|
71
48
|
}
|
|
72
|
-
}, [open, previousOpenState,
|
|
49
|
+
}, [open, previousOpenState, contentHeight]);
|
|
73
50
|
|
|
74
|
-
const
|
|
51
|
+
const fetchMaxHeight = useCallback(
|
|
75
52
|
({ height }) => {
|
|
76
|
-
|
|
77
|
-
setContentHeight(height);
|
|
78
|
-
}
|
|
53
|
+
setContentHeight(height);
|
|
79
54
|
},
|
|
80
55
|
[contentHeight]
|
|
81
56
|
);
|
|
82
57
|
|
|
83
58
|
return (
|
|
84
59
|
<StyledWrapper
|
|
85
|
-
onLayout={event => checkMaxHeight(event.nativeEvent.layout)}
|
|
86
60
|
style={[
|
|
87
61
|
style,
|
|
88
62
|
{
|
|
89
|
-
|
|
90
|
-
heightSource === 'container'
|
|
91
|
-
? collapseAnim
|
|
92
|
-
: collapseAnim.interpolate({
|
|
93
|
-
inputRange: [0, 100],
|
|
94
|
-
outputRange: ['0%', '100%'],
|
|
95
|
-
}),
|
|
63
|
+
height: collapseAnim,
|
|
96
64
|
},
|
|
97
65
|
]}
|
|
98
66
|
testID={testID}
|
|
99
67
|
>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
68
|
+
<StyledHiddenWrapper>
|
|
69
|
+
<StyledChildWrapper
|
|
70
|
+
onLayout={event => fetchMaxHeight(event.nativeEvent.layout)}
|
|
71
|
+
>
|
|
72
|
+
{children}
|
|
73
|
+
</StyledChildWrapper>
|
|
74
|
+
</StyledHiddenWrapper>
|
|
105
75
|
</StyledWrapper>
|
|
106
76
|
);
|
|
107
77
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import styled from '@emotion/native';
|
|
3
|
+
import Typography from '../Typography';
|
|
4
|
+
|
|
5
|
+
const Wrapper = styled(View)(() => ({
|
|
6
|
+
flex: 1,
|
|
7
|
+
flexDirection: 'row',
|
|
8
|
+
justifyContent: 'space-between',
|
|
9
|
+
}));
|
|
10
|
+
|
|
11
|
+
const Value = styled(Typography.Text)(({ theme }) => ({
|
|
12
|
+
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding,
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
export { Wrapper, Value };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
3
|
+
import { Value, Wrapper } from '../StyledContentNavigator';
|
|
4
|
+
|
|
5
|
+
describe('Wrapper', () => {
|
|
6
|
+
it('has correct style', () => {
|
|
7
|
+
const { toJSON } = renderWithTheme(<Wrapper />);
|
|
8
|
+
|
|
9
|
+
expect(toJSON()).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
describe('Value', () => {
|
|
14
|
+
it('has correct style', () => {
|
|
15
|
+
const { toJSON } = renderWithTheme(<Value>Text</Value>);
|
|
16
|
+
|
|
17
|
+
expect(toJSON()).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
});
|
package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Value has correct style 1`] = `
|
|
4
|
+
<Text
|
|
5
|
+
style={
|
|
6
|
+
Array [
|
|
7
|
+
Object {
|
|
8
|
+
"color": "#292a2b",
|
|
9
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
10
|
+
"fontSize": 14,
|
|
11
|
+
"letterSpacing": 0.42,
|
|
12
|
+
"lineHeight": 22,
|
|
13
|
+
},
|
|
14
|
+
Array [
|
|
15
|
+
Object {
|
|
16
|
+
"paddingHorizontal": 8,
|
|
17
|
+
},
|
|
18
|
+
undefined,
|
|
19
|
+
],
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
themeFontSize="medium"
|
|
23
|
+
themeFontWeight="regular"
|
|
24
|
+
themeIntent="body"
|
|
25
|
+
>
|
|
26
|
+
Text
|
|
27
|
+
</Text>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`Wrapper has correct style 1`] = `
|
|
31
|
+
<View
|
|
32
|
+
style={
|
|
33
|
+
Array [
|
|
34
|
+
Object {
|
|
35
|
+
"flex": 1,
|
|
36
|
+
"flexDirection": "row",
|
|
37
|
+
"justifyContent": "space-between",
|
|
38
|
+
},
|
|
39
|
+
undefined,
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
/>
|
|
43
|
+
`;
|