@aws-amplify/ui-react-native 0.0.0-fileuploader-41bde68-20221115171326
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/.eslintrc.js +100 -0
- package/.lintstagedrc.js +6 -0
- package/.turbo/turbo-build.log +3 -0
- package/CHANGELOG.md +22 -0
- package/LICENSE +201 -0
- package/README.md +23 -0
- package/babel.config.js +3 -0
- package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +2 -0
- package/dist/InAppMessaging/components/BannerMessage/BannerMessage.js +16 -0
- package/dist/InAppMessaging/components/BannerMessage/index.d.ts +2 -0
- package/dist/InAppMessaging/components/BannerMessage/index.js +1 -0
- package/dist/InAppMessaging/components/BannerMessage/styles.d.ts +7 -0
- package/dist/InAppMessaging/components/BannerMessage/styles.js +77 -0
- package/dist/InAppMessaging/components/BannerMessage/types.d.ts +12 -0
- package/dist/InAppMessaging/components/BannerMessage/types.js +1 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +2 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.js +20 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +2 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.js +18 -0
- package/dist/InAppMessaging/components/CarouselMessage/index.d.ts +2 -0
- package/dist/InAppMessaging/components/CarouselMessage/index.js +1 -0
- package/dist/InAppMessaging/components/CarouselMessage/styles.d.ts +5 -0
- package/dist/InAppMessaging/components/CarouselMessage/styles.js +98 -0
- package/dist/InAppMessaging/components/CarouselMessage/types.d.ts +18 -0
- package/dist/InAppMessaging/components/CarouselMessage/types.js +1 -0
- package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +2 -0
- package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.js +18 -0
- package/dist/InAppMessaging/components/FullScreenMessage/index.d.ts +2 -0
- package/dist/InAppMessaging/components/FullScreenMessage/index.js +1 -0
- package/dist/InAppMessaging/components/FullScreenMessage/styles.d.ts +3 -0
- package/dist/InAppMessaging/components/FullScreenMessage/styles.js +86 -0
- package/dist/InAppMessaging/components/FullScreenMessage/types.d.ts +6 -0
- package/dist/InAppMessaging/components/FullScreenMessage/types.js +1 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +9 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.js +29 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.d.ts +3 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.js +24 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/index.d.ts +2 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/index.js +1 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/types.d.ts +24 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/types.js +1 -0
- package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +2 -0
- package/dist/InAppMessaging/components/MessageLayout/MessageLayout.js +34 -0
- package/dist/InAppMessaging/components/MessageLayout/index.d.ts +1 -0
- package/dist/InAppMessaging/components/MessageLayout/index.js +1 -0
- package/dist/InAppMessaging/components/MessageLayout/types.d.ts +7 -0
- package/dist/InAppMessaging/components/MessageLayout/types.js +1 -0
- package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +2 -0
- package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.js +20 -0
- package/dist/InAppMessaging/components/MessageWrapper/index.d.ts +2 -0
- package/dist/InAppMessaging/components/MessageWrapper/index.js +1 -0
- package/dist/InAppMessaging/components/MessageWrapper/styles.d.ts +2 -0
- package/dist/InAppMessaging/components/MessageWrapper/styles.js +5 -0
- package/dist/InAppMessaging/components/MessageWrapper/types.d.ts +10 -0
- package/dist/InAppMessaging/components/MessageWrapper/types.js +1 -0
- package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +2 -0
- package/dist/InAppMessaging/components/ModalMessage/ModalMessage.js +18 -0
- package/dist/InAppMessaging/components/ModalMessage/index.d.ts +2 -0
- package/dist/InAppMessaging/components/ModalMessage/index.js +1 -0
- package/dist/InAppMessaging/components/ModalMessage/styles.d.ts +4 -0
- package/dist/InAppMessaging/components/ModalMessage/styles.js +99 -0
- package/dist/InAppMessaging/components/ModalMessage/types.d.ts +6 -0
- package/dist/InAppMessaging/components/ModalMessage/types.js +1 -0
- package/dist/InAppMessaging/components/index.d.ts +6 -0
- package/dist/InAppMessaging/components/index.js +2 -0
- package/dist/InAppMessaging/components/withInAppMessaging/index.d.ts +1 -0
- package/dist/InAppMessaging/components/withInAppMessaging/index.js +1 -0
- package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.d.ts +5 -0
- package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.js +11 -0
- package/dist/InAppMessaging/constants.d.ts +32 -0
- package/dist/InAppMessaging/constants.js +44 -0
- package/dist/InAppMessaging/hooks/index.d.ts +2 -0
- package/dist/InAppMessaging/hooks/index.js +2 -0
- package/dist/InAppMessaging/hooks/useMessageImage/constants.d.ts +8 -0
- package/dist/InAppMessaging/hooks/useMessageImage/constants.js +18 -0
- package/dist/InAppMessaging/hooks/useMessageImage/index.d.ts +2 -0
- package/dist/InAppMessaging/hooks/useMessageImage/index.js +1 -0
- package/dist/InAppMessaging/hooks/useMessageImage/types.d.ts +15 -0
- package/dist/InAppMessaging/hooks/useMessageImage/types.js +6 -0
- package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +10 -0
- package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.js +50 -0
- package/dist/InAppMessaging/hooks/useMessageImage/utils.d.ts +4 -0
- package/dist/InAppMessaging/hooks/useMessageImage/utils.js +56 -0
- package/dist/InAppMessaging/hooks/useMessageProps/index.d.ts +2 -0
- package/dist/InAppMessaging/hooks/useMessageProps/index.js +1 -0
- package/dist/InAppMessaging/hooks/useMessageProps/types.d.ts +109 -0
- package/dist/InAppMessaging/hooks/useMessageProps/types.js +1 -0
- package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +12 -0
- package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.js +49 -0
- package/dist/InAppMessaging/hooks/useMessageProps/utils.d.ts +43 -0
- package/dist/InAppMessaging/hooks/useMessageProps/utils.js +192 -0
- package/dist/InAppMessaging/index.d.ts +2 -0
- package/dist/InAppMessaging/index.js +2 -0
- package/dist/__mocks__/@react-native-async-storage/async-storage.d.ts +1 -0
- package/dist/__mocks__/@react-native-async-storage/async-storage.js +2 -0
- package/dist/__mocks__/@react-native-community/netinfo.d.ts +1 -0
- package/dist/__mocks__/@react-native-community/netinfo.js +2 -0
- package/dist/__mocks__/react-native-safe-area-context.d.ts +3 -0
- package/dist/__mocks__/react-native-safe-area-context.js +4 -0
- package/dist/assets/icons/checkboxFilled.png +0 -0
- package/dist/assets/icons/checkboxOutline.png +0 -0
- package/dist/assets/icons/close.png +0 -0
- package/dist/assets/icons/index.d.ts +7 -0
- package/dist/assets/icons/index.js +6 -0
- package/dist/assets/icons/index.ts +9 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.js +1 -0
- package/dist/assets/index.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useDeviceOrientation/index.d.ts +1 -0
- package/dist/hooks/useDeviceOrientation/index.js +1 -0
- package/dist/hooks/useDeviceOrientation/useDeviceOrientation.d.ts +6 -0
- package/dist/hooks/useDeviceOrientation/useDeviceOrientation.js +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/primitives/Button/Button.d.ts +2 -0
- package/dist/primitives/Button/Button.js +8 -0
- package/dist/primitives/Button/index.d.ts +2 -0
- package/dist/primitives/Button/index.js +1 -0
- package/dist/primitives/Button/styles.d.ts +2 -0
- package/dist/primitives/Button/styles.js +4 -0
- package/dist/primitives/Button/types.d.ts +7 -0
- package/dist/primitives/Button/types.js +1 -0
- package/dist/primitives/Carousel/Carousel.d.ts +2 -0
- package/dist/primitives/Carousel/Carousel.js +58 -0
- package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +2 -0
- package/dist/primitives/Carousel/CarouselPageIndicator.js +10 -0
- package/dist/primitives/Carousel/constants.d.ts +9 -0
- package/dist/primitives/Carousel/constants.js +18 -0
- package/dist/primitives/Carousel/index.d.ts +3 -0
- package/dist/primitives/Carousel/index.js +2 -0
- package/dist/primitives/Carousel/styles.d.ts +2 -0
- package/dist/primitives/Carousel/styles.js +11 -0
- package/dist/primitives/Carousel/types.d.ts +19 -0
- package/dist/primitives/Carousel/types.js +1 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +2 -0
- package/dist/primitives/Checkbox/Checkbox.js +23 -0
- package/dist/primitives/Checkbox/index.d.ts +2 -0
- package/dist/primitives/Checkbox/index.js +1 -0
- package/dist/primitives/Checkbox/styles.d.ts +2 -0
- package/dist/primitives/Checkbox/styles.js +6 -0
- package/dist/primitives/Checkbox/types.d.ts +18 -0
- package/dist/primitives/Checkbox/types.js +1 -0
- package/dist/primitives/Heading/Heading.d.ts +2 -0
- package/dist/primitives/Heading/Heading.js +8 -0
- package/dist/primitives/Heading/index.d.ts +2 -0
- package/dist/primitives/Heading/index.js +1 -0
- package/dist/primitives/Heading/styles.d.ts +2 -0
- package/dist/primitives/Heading/styles.js +14 -0
- package/dist/primitives/Heading/types.d.ts +11 -0
- package/dist/primitives/Heading/types.js +1 -0
- package/dist/primitives/Icon/Icon.d.ts +2 -0
- package/dist/primitives/Icon/Icon.js +10 -0
- package/dist/primitives/Icon/index.d.ts +2 -0
- package/dist/primitives/Icon/index.js +1 -0
- package/dist/primitives/Icon/styles.d.ts +2 -0
- package/dist/primitives/Icon/styles.js +9 -0
- package/dist/primitives/Icon/types.d.ts +18 -0
- package/dist/primitives/Icon/types.js +1 -0
- package/dist/primitives/IconButton/IconButton.d.ts +2 -0
- package/dist/primitives/IconButton/IconButton.js +8 -0
- package/dist/primitives/IconButton/index.d.ts +2 -0
- package/dist/primitives/IconButton/index.js +1 -0
- package/dist/primitives/IconButton/styles.d.ts +0 -0
- package/dist/primitives/IconButton/styles.js +1 -0
- package/dist/primitives/IconButton/types.d.ts +22 -0
- package/dist/primitives/IconButton/types.js +1 -0
- package/dist/primitives/Label/Label.d.ts +2 -0
- package/dist/primitives/Label/Label.js +8 -0
- package/dist/primitives/Label/index.d.ts +2 -0
- package/dist/primitives/Label/index.js +1 -0
- package/dist/primitives/Label/styles.d.ts +2 -0
- package/dist/primitives/Label/styles.js +4 -0
- package/dist/primitives/Label/types.d.ts +7 -0
- package/dist/primitives/Label/types.js +1 -0
- package/dist/primitives/Label/utils.d.ts +17 -0
- package/dist/primitives/Label/utils.js +21 -0
- package/dist/primitives/Radio/Radio.d.ts +2 -0
- package/dist/primitives/Radio/Radio.js +29 -0
- package/dist/primitives/Radio/getRadioDimensions.d.ts +18 -0
- package/dist/primitives/Radio/getRadioDimensions.js +27 -0
- package/dist/primitives/Radio/index.d.ts +2 -0
- package/dist/primitives/Radio/index.js +1 -0
- package/dist/primitives/Radio/styles.d.ts +2 -0
- package/dist/primitives/Radio/styles.js +46 -0
- package/dist/primitives/Radio/types.d.ts +28 -0
- package/dist/primitives/Radio/types.js +1 -0
- package/dist/primitives/index.d.ts +8 -0
- package/dist/primitives/index.js +8 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +7 -0
- package/jest.config.js +20 -0
- package/package.json +57 -0
- package/src/InAppMessaging/components/BannerMessage/BannerMessage.tsx +37 -0
- package/src/InAppMessaging/components/BannerMessage/__tests__/BannerMessage.spec.tsx +138 -0
- package/src/InAppMessaging/components/BannerMessage/__tests__/__snapshots__/BannerMessage.spec.tsx.snap +230 -0
- package/src/InAppMessaging/components/BannerMessage/index.ts +2 -0
- package/src/InAppMessaging/components/BannerMessage/styles.ts +106 -0
- package/src/InAppMessaging/components/BannerMessage/types.ts +15 -0
- package/src/InAppMessaging/components/CarouselMessage/CarouselMessage.tsx +42 -0
- package/src/InAppMessaging/components/CarouselMessage/CarouselMessageItem.tsx +37 -0
- package/src/InAppMessaging/components/CarouselMessage/__tests__/CarouselMessage.spec.tsx +55 -0
- package/src/InAppMessaging/components/CarouselMessage/__tests__/CarouselMessageItem.spec.tsx +56 -0
- package/src/InAppMessaging/components/CarouselMessage/__tests__/__snapshots__/CarouselMessage.spec.tsx.snap +86 -0
- package/src/InAppMessaging/components/CarouselMessage/__tests__/__snapshots__/CarouselMessageItem.spec.tsx.snap +248 -0
- package/src/InAppMessaging/components/CarouselMessage/index.ts +2 -0
- package/src/InAppMessaging/components/CarouselMessage/styles.ts +126 -0
- package/src/InAppMessaging/components/CarouselMessage/types.ts +28 -0
- package/src/InAppMessaging/components/FullScreenMessage/FullScreenMessage.tsx +38 -0
- package/src/InAppMessaging/components/FullScreenMessage/__tests__/FullScreenMessage.spec.tsx +53 -0
- package/src/InAppMessaging/components/FullScreenMessage/__tests__/__snapshots__/FullScreenMessage.spec.tsx.snap +236 -0
- package/src/InAppMessaging/components/FullScreenMessage/index.ts +2 -0
- package/src/InAppMessaging/components/FullScreenMessage/styles.ts +107 -0
- package/src/InAppMessaging/components/FullScreenMessage/types.ts +7 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.tsx +48 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/InAppMessageDisplay.spec.tsx +31 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/__snapshots__/InAppMessageDisplay.spec.tsx.snap +9 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/handleMessageLinkAction.spec.ts +51 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.ts +30 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/index.ts +2 -0
- package/src/InAppMessaging/components/InAppMessageDisplay/types.ts +32 -0
- package/src/InAppMessaging/components/MessageLayout/MessageLayout.tsx +102 -0
- package/src/InAppMessaging/components/MessageLayout/index.ts +1 -0
- package/src/InAppMessaging/components/MessageLayout/types.ts +15 -0
- package/src/InAppMessaging/components/MessageWrapper/MessageWrapper.tsx +34 -0
- package/src/InAppMessaging/components/MessageWrapper/__tests__/MessageWrapper.spec.tsx +19 -0
- package/src/InAppMessaging/components/MessageWrapper/__tests__/__snapshots__/MessageWrapper.spec.tsx.snap +35 -0
- package/src/InAppMessaging/components/MessageWrapper/index.ts +2 -0
- package/src/InAppMessaging/components/MessageWrapper/styles.ts +7 -0
- package/src/InAppMessaging/components/MessageWrapper/types.ts +12 -0
- package/src/InAppMessaging/components/ModalMessage/ModalMessage.tsx +37 -0
- package/src/InAppMessaging/components/ModalMessage/__tests__/ModalMessage.spec.tsx +155 -0
- package/src/InAppMessaging/components/ModalMessage/__tests__/__snapshots__/ModalMessage.spec.tsx.snap +332 -0
- package/src/InAppMessaging/components/ModalMessage/index.ts +2 -0
- package/src/InAppMessaging/components/ModalMessage/styles.ts +133 -0
- package/src/InAppMessaging/components/ModalMessage/types.ts +8 -0
- package/src/InAppMessaging/components/index.ts +6 -0
- package/src/InAppMessaging/components/withInAppMessaging/__tests__/__snapshots__/withInAppMessaging.spec.tsx.snap +3 -0
- package/src/InAppMessaging/components/withInAppMessaging/__tests__/withInAppMessaging.spec.tsx +15 -0
- package/src/InAppMessaging/components/withInAppMessaging/index.ts +1 -0
- package/src/InAppMessaging/components/withInAppMessaging/withInAppMessaging.tsx +18 -0
- package/src/InAppMessaging/constants.ts +57 -0
- package/src/InAppMessaging/hooks/index.ts +9 -0
- package/src/InAppMessaging/hooks/useMessageImage/__tests__/useMessageImage.spec.ts +141 -0
- package/src/InAppMessaging/hooks/useMessageImage/__tests__/utils.spec.ts +107 -0
- package/src/InAppMessaging/hooks/useMessageImage/constants.ts +27 -0
- package/src/InAppMessaging/hooks/useMessageImage/index.ts +2 -0
- package/src/InAppMessaging/hooks/useMessageImage/types.ts +18 -0
- package/src/InAppMessaging/hooks/useMessageImage/useMessageImage.ts +74 -0
- package/src/InAppMessaging/hooks/useMessageImage/utils.ts +80 -0
- package/src/InAppMessaging/hooks/useMessageProps/__tests__/__snapshots__/utils.spec.ts.snap +223 -0
- package/src/InAppMessaging/hooks/useMessageProps/__tests__/useMessageProps.spec.ts +162 -0
- package/src/InAppMessaging/hooks/useMessageProps/__tests__/utils.spec.ts +354 -0
- package/src/InAppMessaging/hooks/useMessageProps/index.ts +8 -0
- package/src/InAppMessaging/hooks/useMessageProps/types.ts +131 -0
- package/src/InAppMessaging/hooks/useMessageProps/useMessageProps.ts +70 -0
- package/src/InAppMessaging/hooks/useMessageProps/utils.ts +274 -0
- package/src/InAppMessaging/index.ts +14 -0
- package/src/__mocks__/@react-native-async-storage/async-storage.ts +2 -0
- package/src/__mocks__/@react-native-community/netinfo.ts +2 -0
- package/src/__mocks__/react-native-safe-area-context.ts +6 -0
- package/src/__tests__/__snapshots__/index.spec.ts.snap +15 -0
- package/src/__tests__/index.spec.ts +8 -0
- package/src/assets/icons/checkboxFilled.png +0 -0
- package/src/assets/icons/checkboxOutline.png +0 -0
- package/src/assets/icons/close.png +0 -0
- package/src/assets/icons/index.ts +9 -0
- package/src/assets/index.ts +1 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useDeviceOrientation/__tests__/useDeviceOrientation.spec.ts +87 -0
- package/src/hooks/useDeviceOrientation/index.ts +4 -0
- package/src/hooks/useDeviceOrientation/useDeviceOrientation.ts +47 -0
- package/src/index.ts +1 -0
- package/src/primitives/Button/Button.tsx +21 -0
- package/src/primitives/Button/__tests__/Button.spec.tsx +24 -0
- package/src/primitives/Button/__tests__/__snapshots__/Button.spec.tsx.snap +52 -0
- package/src/primitives/Button/index.ts +2 -0
- package/src/primitives/Button/styles.ts +6 -0
- package/src/primitives/Button/types.ts +9 -0
- package/src/primitives/Carousel/Carousel.tsx +115 -0
- package/src/primitives/Carousel/CarouselPageIndicator.tsx +39 -0
- package/src/primitives/Carousel/__tests__/Carousel.spec.tsx +185 -0
- package/src/primitives/Carousel/__tests__/CarouselPageIndicator.spec.tsx +71 -0
- package/src/primitives/Carousel/__tests__/__snapshots__/Carousel.spec.tsx.snap +216 -0
- package/src/primitives/Carousel/__tests__/__snapshots__/CarouselPageIndicator.spec.tsx.snap +191 -0
- package/src/primitives/Carousel/constants.ts +25 -0
- package/src/primitives/Carousel/index.ts +3 -0
- package/src/primitives/Carousel/styles.ts +14 -0
- package/src/primitives/Carousel/types.ts +22 -0
- package/src/primitives/Checkbox/Checkbox.tsx +57 -0
- package/src/primitives/Checkbox/__tests__/Checkbox.spec.tsx +50 -0
- package/src/primitives/Checkbox/__tests__/__snapshots__/Checkbox.spec.tsx.snap +198 -0
- package/src/primitives/Checkbox/index.ts +2 -0
- package/src/primitives/Checkbox/styles.ts +8 -0
- package/src/primitives/Checkbox/types.ts +20 -0
- package/src/primitives/Heading/Heading.tsx +22 -0
- package/src/primitives/Heading/__tests__/Heading.spec.tsx +36 -0
- package/src/primitives/Heading/__tests__/__snapshots__/Heading.spec.tsx.snap +150 -0
- package/src/primitives/Heading/index.ts +2 -0
- package/src/primitives/Heading/styles.ts +16 -0
- package/src/primitives/Heading/types.ts +13 -0
- package/src/primitives/Icon/Icon.tsx +20 -0
- package/src/primitives/Icon/__tests__/Icon.spec.tsx +25 -0
- package/src/primitives/Icon/__tests__/__snapshots__/Icon.spec.tsx.snap +64 -0
- package/src/primitives/Icon/index.ts +2 -0
- package/src/primitives/Icon/styles.ts +16 -0
- package/src/primitives/Icon/types.ts +22 -0
- package/src/primitives/IconButton/IconButton.tsx +19 -0
- package/src/primitives/IconButton/__tests__/IconButton.spec.tsx +23 -0
- package/src/primitives/IconButton/__tests__/__snapshots__/IconButton.spec.tsx.snap +75 -0
- package/src/primitives/IconButton/index.ts +2 -0
- package/src/primitives/IconButton/styles.ts +0 -0
- package/src/primitives/IconButton/types.ts +33 -0
- package/src/primitives/Label/Label.tsx +21 -0
- package/src/primitives/Label/__tests__/Label.spec.tsx +22 -0
- package/src/primitives/Label/__tests__/__snapshots__/Label.spec.tsx.snap +39 -0
- package/src/primitives/Label/index.ts +2 -0
- package/src/primitives/Label/styles.ts +7 -0
- package/src/primitives/Label/types.ts +8 -0
- package/src/primitives/Label/utils.ts +27 -0
- package/src/primitives/Radio/Radio.tsx +75 -0
- package/src/primitives/Radio/__tests__/Radio.spec.tsx +70 -0
- package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +555 -0
- package/src/primitives/Radio/getRadioDimensions.ts +38 -0
- package/src/primitives/Radio/index.ts +2 -0
- package/src/primitives/Radio/styles.ts +50 -0
- package/src/primitives/Radio/types.ts +32 -0
- package/src/primitives/index.ts +8 -0
- package/src/utils/index.ts +10 -0
- package/tsconfig.dist.json +4 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@react-native-async-storage/async-storage/jest/async-storage-mock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@react-native-community/netinfo/jest/netinfo-mock.js';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ImageSourcePropType } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const icons = {
|
|
4
|
+
checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
|
|
5
|
+
checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
|
|
6
|
+
close: require('./close.png') as ImageSourcePropType,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default icons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as icons } from './icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as icons } from './icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as icons } from './icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeviceOrientation, useDeviceOrientation, } from './useDeviceOrientation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDeviceOrientation, } from './useDeviceOrientation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useDeviceOrientation, DeviceOrientation, } from './useDeviceOrientation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useDeviceOrientation, } from './useDeviceOrientation';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { Dimensions } from 'react-native';
|
|
3
|
+
const getDeviceOrientation = () => {
|
|
4
|
+
const { height, width } = Dimensions.get('screen');
|
|
5
|
+
return height >= width ? 'portrait' : 'landscape';
|
|
6
|
+
};
|
|
7
|
+
export default function useDeviceOrientation() {
|
|
8
|
+
const [deviceOrientation, setDeviceOrientation] = useState(getDeviceOrientation);
|
|
9
|
+
const isLandscapeMode = deviceOrientation === 'landscape';
|
|
10
|
+
const isPortraitMode = deviceOrientation === 'portrait';
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const handler = () => {
|
|
13
|
+
setDeviceOrientation(getDeviceOrientation);
|
|
14
|
+
};
|
|
15
|
+
// The below cast and conditional unsubscribe handling is due to subscription removal variation
|
|
16
|
+
// between `Dimensions.addEventListener` in React Native prior to and after v0.65.
|
|
17
|
+
//
|
|
18
|
+
// Beginning with v0.65, `Dimensions.addEventListener` returns an `EventSubscription` object,
|
|
19
|
+
// which includes a `remove` method for removing the subscription. Prior versions return
|
|
20
|
+
// `undefined`, and subscription removal is handled by `Dimensions.removeEventListener`,
|
|
21
|
+
// which is deprecated in v0.65
|
|
22
|
+
const subscription = Dimensions.addEventListener('change', handler);
|
|
23
|
+
return () => {
|
|
24
|
+
if (typeof subscription?.remove === 'function') {
|
|
25
|
+
subscription.remove();
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
Dimensions.removeEventListener('change', handler);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}, []);
|
|
32
|
+
return { deviceOrientation, isLandscapeMode, isPortraitMode };
|
|
33
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InAppMessaging';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InAppMessaging';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pressable, Text } from 'react-native';
|
|
3
|
+
import { styles } from './styles';
|
|
4
|
+
export default function Button({ children, textStyle, ...pressableProps }) {
|
|
5
|
+
return (<Pressable {...pressableProps}>
|
|
6
|
+
{typeof children === 'string' ? (<Text style={[styles.text, textStyle]}>{children}</Text>) : (children)}
|
|
7
|
+
</Pressable>);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { Dimensions, FlatList, View, } from 'react-native';
|
|
3
|
+
import CarouselPageIndicator from './CarouselPageIndicator';
|
|
4
|
+
import { VIEWABILITY_CONFIG } from './constants';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
export default function Carousel(props) {
|
|
7
|
+
const { data, indicatorActiveStyle, indicatorInactiveStyle, renderItem, style, } = props;
|
|
8
|
+
const flatListRef = useRef(null);
|
|
9
|
+
const indexRef = useRef(0);
|
|
10
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
11
|
+
const windowWidthRef = useRef(Dimensions.get('window').width);
|
|
12
|
+
const [width, setWidth] = useState(windowWidthRef.current);
|
|
13
|
+
const onViewableItemsChanged = useRef(({ viewableItems }) => {
|
|
14
|
+
if (viewableItems.length !== 1) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const [item] = viewableItems;
|
|
18
|
+
indexRef.current = item.index;
|
|
19
|
+
setCurrentIndex(indexRef.current);
|
|
20
|
+
});
|
|
21
|
+
const updateOrientation = useCallback((updatedWidth) => {
|
|
22
|
+
if (windowWidthRef.current !== updatedWidth) {
|
|
23
|
+
windowWidthRef.current = updatedWidth;
|
|
24
|
+
setWidth(updatedWidth);
|
|
25
|
+
}
|
|
26
|
+
}, []);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
// on width change (due to orientation change), jump to the new index offset
|
|
29
|
+
flatListRef?.current?.scrollToOffset({
|
|
30
|
+
offset: width * indexRef.current,
|
|
31
|
+
animated: false,
|
|
32
|
+
});
|
|
33
|
+
}, [width]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const orientationHandler = ({ window }) => {
|
|
36
|
+
updateOrientation(window.width);
|
|
37
|
+
};
|
|
38
|
+
const subscription = Dimensions.addEventListener('change', orientationHandler);
|
|
39
|
+
// Clean up listener. Dimensions.removeEventListener is deprecated as of React Native 0.65 but it is technically
|
|
40
|
+
// available so try to remove via a `EmitterSubscription` first before falling back to `removeEventListener`
|
|
41
|
+
return () => {
|
|
42
|
+
if (typeof subscription?.remove === 'function') {
|
|
43
|
+
subscription?.remove();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
Dimensions.removeEventListener('change', orientationHandler);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, [updateOrientation]);
|
|
50
|
+
const carouselRenderItem = (renderInfo) => (<View style={{ width }}>{renderItem(renderInfo)}</View>);
|
|
51
|
+
if (!data?.length) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return (<>
|
|
55
|
+
<FlatList bounces={false} data={data} decelerationRate="fast" disableIntervalMomentum horizontal onViewableItemsChanged={onViewableItemsChanged.current} ref={flatListRef} renderItem={carouselRenderItem} renderToHardwareTextureAndroid showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false} snapToAlignment="start" snapToInterval={width} style={style} viewabilityConfig={VIEWABILITY_CONFIG}/>
|
|
56
|
+
<CarouselPageIndicator activeStyle={indicatorActiveStyle} currentIndex={currentIndex} inactiveStyle={indicatorInactiveStyle} numberOfItems={data.length} style={styles.indicator}/>
|
|
57
|
+
</>);
|
|
58
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
|
+
import { DEFAULT_CAROUSEL_INDICATOR_ACTIVE_STYLE, DEFAULT_CAROUSEL_INDICATOR_INACTIVE_STYLE, } from './constants';
|
|
5
|
+
export default function CarouselPageIndicator({ activeStyle, currentIndex, inactiveStyle, numberOfItems, style, }) {
|
|
6
|
+
const items = useMemo(() => new Array(numberOfItems ?? 0)
|
|
7
|
+
.fill(null)
|
|
8
|
+
.map((_, index) => (currentIndex ?? 0) === index ? (<View style={[DEFAULT_CAROUSEL_INDICATOR_ACTIVE_STYLE, activeStyle]} key={`indicator-item-${index}`}/>) : (<View style={[DEFAULT_CAROUSEL_INDICATOR_INACTIVE_STYLE, inactiveStyle]} key={`indicator-item-${index}`}/>)), [activeStyle, currentIndex, inactiveStyle, numberOfItems]);
|
|
9
|
+
return <SafeAreaView style={style}>{items}</SafeAreaView>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
export declare const DEFAULT_CAROUSEL_COLOR_ACTIVE = "#a1a1a1";
|
|
3
|
+
export declare const DEFAULT_CAROUSEL_COLOR_INACTIVE = "#d8d8d8";
|
|
4
|
+
export declare const DEFAULT_CAROUSEL_INDICATOR_SIZE = 12;
|
|
5
|
+
export declare const DEFAULT_CAROUSEL_INDICATOR_ACTIVE_STYLE: ViewStyle;
|
|
6
|
+
export declare const DEFAULT_CAROUSEL_INDICATOR_INACTIVE_STYLE: ViewStyle;
|
|
7
|
+
export declare const VIEWABILITY_CONFIG: {
|
|
8
|
+
itemVisiblePercentThreshold: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const DEFAULT_CAROUSEL_COLOR_ACTIVE = '#a1a1a1';
|
|
2
|
+
export const DEFAULT_CAROUSEL_COLOR_INACTIVE = '#d8d8d8';
|
|
3
|
+
export const DEFAULT_CAROUSEL_INDICATOR_SIZE = 12;
|
|
4
|
+
const DEFAULT_CAROUSEL_INDICATOR_STYLE = {
|
|
5
|
+
borderRadius: DEFAULT_CAROUSEL_INDICATOR_SIZE / 2,
|
|
6
|
+
height: DEFAULT_CAROUSEL_INDICATOR_SIZE,
|
|
7
|
+
margin: DEFAULT_CAROUSEL_INDICATOR_SIZE / 3,
|
|
8
|
+
width: DEFAULT_CAROUSEL_INDICATOR_SIZE,
|
|
9
|
+
};
|
|
10
|
+
export const DEFAULT_CAROUSEL_INDICATOR_ACTIVE_STYLE = {
|
|
11
|
+
...DEFAULT_CAROUSEL_INDICATOR_STYLE,
|
|
12
|
+
backgroundColor: DEFAULT_CAROUSEL_COLOR_ACTIVE,
|
|
13
|
+
};
|
|
14
|
+
export const DEFAULT_CAROUSEL_INDICATOR_INACTIVE_STYLE = {
|
|
15
|
+
...DEFAULT_CAROUSEL_INDICATOR_STYLE,
|
|
16
|
+
backgroundColor: DEFAULT_CAROUSEL_COLOR_INACTIVE,
|
|
17
|
+
};
|
|
18
|
+
export const VIEWABILITY_CONFIG = { itemVisiblePercentThreshold: 60 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ListRenderItem, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
export interface CarouselProps<T> {
|
|
3
|
+
data: ReadonlyArray<T>;
|
|
4
|
+
indicatorActiveStyle?: StyleProp<ViewStyle>;
|
|
5
|
+
indicatorInactiveStyle?: StyleProp<ViewStyle>;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
renderItem: ListRenderItem<T>;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
export interface CarouselPageIndicatorProps {
|
|
11
|
+
activeStyle?: StyleProp<ViewStyle>;
|
|
12
|
+
currentIndex: number | null;
|
|
13
|
+
inactiveStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
numberOfItems: number;
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
}
|
|
17
|
+
export interface CarouselStyles {
|
|
18
|
+
indicator: ViewStyle;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
|
+
import { icons } from '../../assets';
|
|
4
|
+
import { styles } from './styles';
|
|
5
|
+
import { Label } from '../Label';
|
|
6
|
+
import { getFlexDirectionFromLabelPosition } from '../Label/utils';
|
|
7
|
+
import { Icon } from '../Icon';
|
|
8
|
+
export default function Checkbox({ accessibilityRole = 'checkbox', iconStyle, disabled, label, labelPosition = 'end', labelStyle, onChange, selected, size, style, value, ...rest }) {
|
|
9
|
+
const [checked, setChecked] = useState(selected ?? false);
|
|
10
|
+
const handleOnChange = useCallback(() => {
|
|
11
|
+
onChange?.(value);
|
|
12
|
+
setChecked(!checked);
|
|
13
|
+
}, [onChange, value, checked]);
|
|
14
|
+
const containerStyle = useMemo(() => ({
|
|
15
|
+
...styles.container,
|
|
16
|
+
flexDirection: getFlexDirectionFromLabelPosition(labelPosition),
|
|
17
|
+
opacity: disabled ? 0.6 : 1,
|
|
18
|
+
}), [disabled, labelPosition]);
|
|
19
|
+
return (<Pressable {...rest} accessibilityRole={accessibilityRole} disabled={disabled} onPress={handleOnChange} style={[containerStyle, style]}>
|
|
20
|
+
<Icon source={checked ? icons.checkboxFilled : icons.checkboxOutline} size={size} style={iconStyle}/>
|
|
21
|
+
{label ? <Label style={labelStyle}>{label}</Label> : null}
|
|
22
|
+
</Pressable>);
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { IconProps } from '../Icon/types';
|
|
3
|
+
import { LabelProps } from '../Label';
|
|
4
|
+
import { LabelPosition } from '../Label/types';
|
|
5
|
+
export interface CheckboxProps<T> extends PressableProps {
|
|
6
|
+
iconStyle?: IconProps['style'];
|
|
7
|
+
label?: string;
|
|
8
|
+
labelPosition?: LabelPosition;
|
|
9
|
+
labelStyle?: LabelProps['style'];
|
|
10
|
+
onChange: (value: T) => void;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
size?: number;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
value: T;
|
|
15
|
+
}
|
|
16
|
+
export interface CheckboxStyle {
|
|
17
|
+
container: ViewStyle;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import { styles } from './styles';
|
|
4
|
+
export default function Heading({ accessibilityRole = 'header', children, level = 6, style, ...rest }) {
|
|
5
|
+
return (<Text {...rest} accessibilityRole={accessibilityRole} style={[styles.text, styles[level], style]}>
|
|
6
|
+
{children}
|
|
7
|
+
</Text>);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Heading } from './Heading';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { getLineHeight } from '../../utils';
|
|
3
|
+
export const styles = StyleSheet.create({
|
|
4
|
+
text: {
|
|
5
|
+
color: 'black',
|
|
6
|
+
},
|
|
7
|
+
// these values are completely arbitrary for now
|
|
8
|
+
1: { fontSize: 56, fontWeight: '100', lineHeight: getLineHeight(56) },
|
|
9
|
+
2: { fontSize: 44, fontWeight: '200', lineHeight: getLineHeight(44) },
|
|
10
|
+
3: { fontSize: 34, fontWeight: '300', lineHeight: getLineHeight(34) },
|
|
11
|
+
4: { fontSize: 26, fontWeight: '500', lineHeight: getLineHeight(26) },
|
|
12
|
+
5: { fontSize: 20, fontWeight: '700', lineHeight: getLineHeight(20) },
|
|
13
|
+
6: { fontSize: 16, fontWeight: '900', lineHeight: getLineHeight(16) },
|
|
14
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextProps, TextStyle } from 'react-native';
|
|
2
|
+
declare type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export interface HeadingProps extends TextProps {
|
|
4
|
+
level?: Level;
|
|
5
|
+
}
|
|
6
|
+
export declare type HeadingStyles = {
|
|
7
|
+
text: TextStyle;
|
|
8
|
+
} & {
|
|
9
|
+
[key in Level]: TextStyle;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Animated, Image } from 'react-native';
|
|
3
|
+
import { getStyles } from './styles';
|
|
4
|
+
export default function Icon({ animated, color, size, style, ...rest }) {
|
|
5
|
+
const { icon } = useMemo(() => getStyles(color, size), [color, size]);
|
|
6
|
+
if (animated) {
|
|
7
|
+
return <Animated.Image {...rest} style={[icon, style]}/>;
|
|
8
|
+
}
|
|
9
|
+
return <Image {...rest} style={[icon, style]}/>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icon } from './Icon';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorValue, ImageProps, ImageStyle } from 'react-native';
|
|
2
|
+
export interface IconStyles {
|
|
3
|
+
icon: ImageStyle;
|
|
4
|
+
}
|
|
5
|
+
export interface IconProps extends ImageProps {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the icon is animated
|
|
8
|
+
*/
|
|
9
|
+
animated?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Color to be applied to the icon
|
|
12
|
+
*/
|
|
13
|
+
color?: ColorValue;
|
|
14
|
+
/**
|
|
15
|
+
* Icon size
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
export default function IconButton({ color, iconStyle, source, size = 16, ...rest }) {
|
|
5
|
+
return (<Pressable {...rest}>
|
|
6
|
+
<Icon color={color} size={size} source={source} style={iconStyle}/>
|
|
7
|
+
</Pressable>);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IconButton } from './IconButton';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ColorValue, ImageSourcePropType, ImageStyle, PressableProps, StyleProp } from 'react-native';
|
|
2
|
+
export interface IconButtonStyles {
|
|
3
|
+
icon: ImageStyle;
|
|
4
|
+
}
|
|
5
|
+
export interface IconButtonProps extends PressableProps {
|
|
6
|
+
/**
|
|
7
|
+
* Color to be applied to the icon
|
|
8
|
+
*/
|
|
9
|
+
color?: ColorValue;
|
|
10
|
+
/**
|
|
11
|
+
* Icon style properties
|
|
12
|
+
*/
|
|
13
|
+
iconStyle?: StyleProp<ImageStyle>;
|
|
14
|
+
/**
|
|
15
|
+
* Icon source, only supports images at this time
|
|
16
|
+
*/
|
|
17
|
+
source: ImageSourcePropType;
|
|
18
|
+
/**
|
|
19
|
+
* Icon size
|
|
20
|
+
*/
|
|
21
|
+
size?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import { styles } from './styles';
|
|
4
|
+
export default function Label({ accessibilityRole = 'text', children, style, ...rest }) {
|
|
5
|
+
return (<Text {...rest} accessibilityRole={accessibilityRole} style={[styles.label, style]}>
|
|
6
|
+
{children}
|
|
7
|
+
</Text>);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Label } from './Label';
|