@amityco/react-native-social-uikit 4.0.0-ca3519f.0 → 4.0.0-cfcb02e.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/README.md +1 -1
- package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
- package/lib/commonjs/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +77 -0
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/lib/commonjs/components/ErrorBoundary/index.js +20 -0
- package/lib/commonjs/components/ErrorBoundary/index.js.map +1 -0
- package/lib/commonjs/components/MediaSection/index.js +3 -3
- package/lib/commonjs/components/MediaSection/index.js.map +1 -1
- package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js +14 -5
- package/lib/commonjs/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/commonjs/components/PostTypeChoiceModal/style.js +1 -2
- package/lib/commonjs/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/commonjs/components/Social/PostList/index.js +8 -5
- package/lib/commonjs/components/Social/PostList/index.js.map +1 -1
- package/lib/commonjs/hooks/useAuth.js +4 -2
- package/lib/commonjs/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/Social/communities-sdk.js +2 -1
- package/lib/commonjs/providers/Social/communities-sdk.js.map +1 -1
- package/lib/commonjs/providers/amity-ui-kit-provider.js +4 -2
- package/lib/commonjs/providers/amity-ui-kit-provider.js.map +1 -1
- package/lib/commonjs/providers/auth-provider.js +20 -11
- package/lib/commonjs/providers/auth-provider.js.map +1 -1
- package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js +16 -16
- package/lib/commonjs/screens/CreateLivestream/CreateLivestream.js.map +1 -1
- package/lib/commonjs/screens/LivestreamPlayer/index.js +3 -6
- package/lib/commonjs/screens/LivestreamPlayer/index.js.map +1 -1
- package/lib/commonjs/svg/svg-xml-list.js +1 -1
- package/lib/commonjs/util/postTypeChecker.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +43 -25
- package/lib/commonjs/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js +4 -16
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js +22 -9
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js +4 -3
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js +14 -13
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js +8 -10
- package/lib/commonjs/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js +2 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +2 -1
- package/lib/commonjs/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
- package/lib/commonjs/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Elements/CommonElements/AvatarElement.js +16 -9
- package/lib/commonjs/v4/PublicApi/Elements/CommonElements/AvatarElement.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +28 -25
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +231 -76
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +50 -0
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
- package/lib/commonjs/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +113 -124
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +3 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js +21 -2
- package/lib/commonjs/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js +17 -6
- package/lib/commonjs/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js.map +1 -1
- package/lib/commonjs/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +1 -1
- package/lib/commonjs/v4/assets/icons/poll.js +2 -2
- package/lib/commonjs/v4/component/LivestreamContent/index.js +12 -12
- package/lib/commonjs/v4/component/LivestreamContent/index.js.map +1 -1
- package/lib/commonjs/v4/component/MyAvatar/MyAvatar.js +9 -6
- package/lib/commonjs/v4/component/MyAvatar/MyAvatar.js.map +1 -1
- package/lib/commonjs/v4/component/PollContent/PollResults.js +1 -0
- package/lib/commonjs/v4/component/PollContent/PollResults.js.map +1 -1
- package/lib/commonjs/v4/component/PostContent/index.js +4 -4
- package/lib/commonjs/v4/component/PostContent/index.js.map +1 -1
- package/lib/commonjs/v4/component/PostMenu/index.js +2 -2
- package/lib/commonjs/v4/component/PostMenu/index.js.map +1 -1
- package/lib/commonjs/v4/component/RenderTextWithMention/RenderTextWithMention.js +16 -9
- package/lib/commonjs/v4/component/RenderTextWithMention/RenderTextWithMention.js.map +1 -1
- package/lib/commonjs/v4/component/SearchResultItem/SearchResultItem.js +1 -0
- package/lib/commonjs/v4/component/SearchResultItem/SearchResultItem.js.map +1 -1
- package/lib/commonjs/v4/component/Toast/index.js +4 -4
- package/lib/commonjs/v4/component/Toast/index.js.map +1 -1
- package/lib/commonjs/v4/component/Toast/styles.js +2 -2
- package/lib/commonjs/v4/component/Toast/styles.js.map +1 -1
- package/lib/commonjs/v4/constants/index.js +4 -2
- package/lib/commonjs/v4/constants/index.js.map +1 -1
- package/lib/commonjs/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +1 -1
- package/lib/commonjs/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
- package/lib/commonjs/v4/engine/AssetDownloader.js +2 -1
- package/lib/commonjs/v4/engine/AssetDownloader.js.map +1 -1
- package/lib/commonjs/v4/enum/roomStatus.js +15 -0
- package/lib/commonjs/v4/enum/roomStatus.js.map +1 -0
- package/lib/commonjs/v4/features/room/hooks/useRoom.js +26 -0
- package/lib/commonjs/v4/features/room/hooks/useRoom.js.map +1 -0
- package/lib/commonjs/v4/hook/index.js +22 -0
- package/lib/commonjs/v4/hook/index.js.map +1 -1
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js +1 -3
- package/lib/commonjs/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/commonjs/v4/hook/usePostSubscription.js +38 -0
- package/lib/commonjs/v4/hook/usePostSubscription.js.map +1 -0
- package/lib/commonjs/v4/hook/useRoomSubscription.js +22 -0
- package/lib/commonjs/v4/hook/useRoomSubscription.js.map +1 -0
- package/lib/commonjs/v4/index.js +7 -0
- package/lib/commonjs/v4/index.js.map +1 -1
- package/lib/commonjs/v4/routes/AmityPageRenderer.js +5 -0
- package/lib/commonjs/v4/routes/AmityPageRenderer.js.map +1 -1
- package/lib/commonjs/v4/routes/AmitySocialUIKitV4Navigator.js +4 -1
- package/lib/commonjs/v4/routes/AmitySocialUIKitV4Navigator.js.map +1 -1
- package/lib/commonjs/v4/screen/GlobalBan/GlobalBan.js +42 -0
- package/lib/commonjs/v4/screen/GlobalBan/GlobalBan.js.map +1 -0
- package/lib/commonjs/v4/screen/GlobalBan/index.js +13 -0
- package/lib/commonjs/v4/screen/GlobalBan/index.js.map +1 -0
- package/lib/commonjs/v4/screen/GlobalBan/styles.js +46 -0
- package/lib/commonjs/v4/screen/GlobalBan/styles.js.map +1 -0
- package/lib/commonjs/v4/screen/PostDetail/index.js +3 -2
- package/lib/commonjs/v4/screen/PostDetail/index.js.map +1 -1
- package/lib/commonjs/v4/stores/slices/toast.js +4 -1
- package/lib/commonjs/v4/stores/slices/toast.js.map +1 -1
- package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js +1 -1
- package/lib/module/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.js.map +1 -1
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js +69 -0
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/lib/module/components/ErrorBoundary/index.js +3 -0
- package/lib/module/components/ErrorBoundary/index.js.map +1 -0
- package/lib/module/components/MediaSection/index.js +3 -3
- package/lib/module/components/MediaSection/index.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js +15 -8
- package/lib/module/components/PostTypeChoiceModal/PostTypeChoiceModal.js.map +1 -1
- package/lib/module/components/PostTypeChoiceModal/style.js +1 -2
- package/lib/module/components/PostTypeChoiceModal/style.js.map +1 -1
- package/lib/module/components/Social/PostList/index.js +8 -5
- package/lib/module/components/Social/PostList/index.js.map +1 -1
- package/lib/module/hooks/useAuth.js +4 -2
- package/lib/module/hooks/useAuth.js.map +1 -1
- package/lib/module/index.js +3 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/Social/communities-sdk.js +2 -1
- package/lib/module/providers/Social/communities-sdk.js.map +1 -1
- package/lib/module/providers/amity-ui-kit-provider.js +4 -2
- package/lib/module/providers/amity-ui-kit-provider.js.map +1 -1
- package/lib/module/providers/auth-provider.js +20 -11
- package/lib/module/providers/auth-provider.js.map +1 -1
- package/lib/module/screens/CreateLivestream/CreateLivestream.js +17 -17
- package/lib/module/screens/CreateLivestream/CreateLivestream.js.map +1 -1
- package/lib/module/screens/LivestreamPlayer/index.js +4 -8
- package/lib/module/screens/LivestreamPlayer/index.js.map +1 -1
- package/lib/module/svg/svg-xml-list.js +1 -1
- package/lib/module/util/postTypeChecker.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js +44 -26
- package/lib/module/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js +4 -16
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js +22 -9
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js +4 -3
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js +14 -13
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js +8 -10
- package/lib/module/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js +2 -1
- package/lib/module/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js +2 -1
- package/lib/module/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.js.map +1 -1
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js +3 -2
- package/lib/module/v4/PublicApi/Elements/ButtonWithIconElement/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Elements/CommonElements/AvatarElement.js +16 -9
- package/lib/module/v4/PublicApi/Elements/CommonElements/AvatarElement.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js +29 -26
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js +2 -2
- package/lib/module/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js +236 -80
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js +42 -0
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.js.map +1 -0
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js +71 -3
- package/lib/module/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js +115 -126
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js +3 -2
- package/lib/module/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js +21 -2
- package/lib/module/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js +17 -6
- package/lib/module/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.js.map +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js +1 -1
- package/lib/module/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.js.map +1 -1
- package/lib/module/v4/assets/icons/poll.js +2 -2
- package/lib/module/v4/component/LivestreamContent/index.js +13 -13
- package/lib/module/v4/component/LivestreamContent/index.js.map +1 -1
- package/lib/module/v4/component/MyAvatar/MyAvatar.js +9 -6
- package/lib/module/v4/component/MyAvatar/MyAvatar.js.map +1 -1
- package/lib/module/v4/component/PollContent/PollResults.js +1 -0
- package/lib/module/v4/component/PollContent/PollResults.js.map +1 -1
- package/lib/module/v4/component/PostContent/index.js +4 -4
- package/lib/module/v4/component/PostContent/index.js.map +1 -1
- package/lib/module/v4/component/PostMenu/index.js +2 -2
- package/lib/module/v4/component/PostMenu/index.js.map +1 -1
- package/lib/module/v4/component/RenderTextWithMention/RenderTextWithMention.js +17 -10
- package/lib/module/v4/component/RenderTextWithMention/RenderTextWithMention.js.map +1 -1
- package/lib/module/v4/component/SearchResultItem/SearchResultItem.js +1 -0
- package/lib/module/v4/component/SearchResultItem/SearchResultItem.js.map +1 -1
- package/lib/module/v4/component/Toast/index.js +4 -4
- package/lib/module/v4/component/Toast/index.js.map +1 -1
- package/lib/module/v4/component/Toast/styles.js +2 -2
- package/lib/module/v4/component/Toast/styles.js.map +1 -1
- package/lib/module/v4/constants/index.js +3 -1
- package/lib/module/v4/constants/index.js.map +1 -1
- package/lib/module/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +1 -1
- package/lib/module/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
- package/lib/module/v4/engine/AssetDownloader.js +2 -1
- package/lib/module/v4/engine/AssetDownloader.js.map +1 -1
- package/lib/module/v4/enum/roomStatus.js +9 -0
- package/lib/module/v4/enum/roomStatus.js.map +1 -0
- package/lib/module/v4/features/room/hooks/useRoom.js +20 -0
- package/lib/module/v4/features/room/hooks/useRoom.js.map +1 -0
- package/lib/module/v4/hook/index.js +2 -0
- package/lib/module/v4/hook/index.js.map +1 -1
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.js +1 -3
- package/lib/module/v4/hook/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/module/v4/hook/usePostSubscription.js +31 -0
- package/lib/module/v4/hook/usePostSubscription.js.map +1 -0
- package/lib/module/v4/hook/useRoomSubscription.js +15 -0
- package/lib/module/v4/hook/useRoomSubscription.js.map +1 -0
- package/lib/module/v4/index.js +1 -1
- package/lib/module/v4/index.js.map +1 -1
- package/lib/module/v4/routes/AmityPageRenderer.js +5 -0
- package/lib/module/v4/routes/AmityPageRenderer.js.map +1 -1
- package/lib/module/v4/routes/AmitySocialUIKitV4Navigator.js +4 -1
- package/lib/module/v4/routes/AmitySocialUIKitV4Navigator.js.map +1 -1
- package/lib/module/v4/screen/GlobalBan/GlobalBan.js +35 -0
- package/lib/module/v4/screen/GlobalBan/GlobalBan.js.map +1 -0
- package/lib/module/v4/screen/GlobalBan/index.js +2 -0
- package/lib/module/v4/screen/GlobalBan/index.js.map +1 -0
- package/lib/module/v4/screen/GlobalBan/styles.js +39 -0
- package/lib/module/v4/screen/GlobalBan/styles.js.map +1 -0
- package/lib/module/v4/screen/PostDetail/index.js +3 -2
- package/lib/module/v4/screen/PostDetail/index.js.map +1 -1
- package/lib/module/v4/stores/slices/toast.js +4 -1
- package/lib/module/v4/stores/slices/toast.js.map +1 -1
- package/lib/typescript/src/components/ErrorBoundary/ErrorBoundary.d.ts +20 -0
- package/lib/typescript/src/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts +3 -0
- package/lib/typescript/src/components/ErrorBoundary/index.d.ts.map +1 -0
- package/lib/typescript/src/components/MediaSection/index.d.ts.map +1 -1
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts +1 -2
- package/lib/typescript/src/components/PostTypeChoiceModal/style.d.ts.map +1 -1
- package/lib/typescript/src/components/Social/PostList/index.d.ts +1 -3
- package/lib/typescript/src/components/Social/PostList/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/amity-ui-kit-provider.d.ts.map +1 -1
- package/lib/typescript/src/providers/auth-provider.d.ts.map +1 -1
- package/lib/typescript/src/screens/LivestreamPlayer/index.d.ts.map +1 -1
- package/lib/typescript/src/types/auth.interface.d.ts +1 -0
- package/lib/typescript/src/types/auth.interface.d.ts.map +1 -1
- package/lib/typescript/src/types/user.interface.d.ts +1 -0
- package/lib/typescript/src/types/user.interface.d.ts.map +1 -1
- package/lib/typescript/src/util/postTypeChecker.d.ts +1 -1
- package/lib/typescript/src/util/postTypeChecker.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.d.ts +1 -2
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.d.ts +3 -5
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts +1 -3
- package/lib/typescript/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Elements/CommonElements/AvatarElement.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Elements/CommonElements/AvatarElement.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.d.ts +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts +8 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.d.ts.map +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts +70 -2
- package/lib/typescript/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.d.ts +1 -0
- package/lib/typescript/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.d.ts.map +1 -1
- package/lib/typescript/src/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts +1 -1
- package/lib/typescript/src/v4/component/LivestreamContent/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/MyAvatar/MyAvatar.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/PollContent/PollResults.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/PostContent/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/RenderTextWithMention/RenderTextWithMention.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/SearchResultItem/SearchResultItem.d.ts.map +1 -1
- package/lib/typescript/src/v4/component/Toast/styles.d.ts +1 -1
- package/lib/typescript/src/v4/component/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/src/v4/constants/index.d.ts +2 -0
- package/lib/typescript/src/v4/constants/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/enum/roomStatus.d.ts +9 -0
- package/lib/typescript/src/v4/enum/roomStatus.d.ts.map +1 -0
- package/lib/typescript/src/v4/features/room/hooks/useRoom.d.ts +2 -0
- package/lib/typescript/src/v4/features/room/hooks/useRoom.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/index.d.ts +2 -0
- package/lib/typescript/src/v4/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts +3 -0
- package/lib/typescript/src/v4/hook/usePendingPostQuery.d.ts.map +1 -1
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts +4 -0
- package/lib/typescript/src/v4/hook/usePostSubscription.d.ts.map +1 -0
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts +4 -0
- package/lib/typescript/src/v4/hook/useRoomSubscription.d.ts.map +1 -0
- package/lib/typescript/src/v4/index.d.ts +1 -0
- package/lib/typescript/src/v4/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/AmityPageRenderer.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/AmitySocialUIKitV4Navigator.d.ts.map +1 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts +2 -1
- package/lib/typescript/src/v4/routes/RouteParamList.d.ts.map +1 -1
- package/lib/typescript/src/v4/screen/GlobalBan/GlobalBan.d.ts +3 -0
- package/lib/typescript/src/v4/screen/GlobalBan/GlobalBan.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/GlobalBan/index.d.ts +2 -0
- package/lib/typescript/src/v4/screen/GlobalBan/index.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/GlobalBan/styles.d.ts +34 -0
- package/lib/typescript/src/v4/screen/GlobalBan/styles.d.ts.map +1 -0
- package/lib/typescript/src/v4/screen/PostDetail/index.d.ts.map +1 -1
- package/lib/typescript/src/v4/stores/slices/toast.d.ts +1 -0
- package/lib/typescript/src/v4/stores/slices/toast.d.ts.map +1 -1
- package/package.json +10 -4
- package/src/components/CreatePostChooseTargetModal/CreatePostChooseTargetModal.tsx +1 -1
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +84 -0
- package/src/components/ErrorBoundary/index.ts +2 -0
- package/src/components/MediaSection/index.tsx +4 -6
- package/src/components/PostTypeChoiceModal/PostTypeChoiceModal.tsx +15 -15
- package/src/components/PostTypeChoiceModal/style.ts +1 -2
- package/src/components/Social/PostList/index.tsx +8 -6
- package/src/hooks/useAuth.ts +2 -0
- package/src/index.tsx +4 -2
- package/src/providers/Social/communities-sdk.ts +1 -1
- package/src/providers/amity-ui-kit-provider.tsx +33 -27
- package/src/providers/auth-provider.tsx +17 -7
- package/src/screens/CreateLivestream/CreateLivestream.tsx +17 -17
- package/src/screens/LivestreamPlayer/index.tsx +9 -15
- package/src/svg/svg-xml-list.ts +1 -1
- package/src/types/auth.interface.ts +1 -0
- package/src/types/user.interface.ts +1 -0
- package/src/util/postTypeChecker.ts +1 -1
- package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx +47 -31
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/AmityPostCommentComponent.tsx +4 -11
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.tsx +39 -15
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/styles.ts +3 -2
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/index.tsx +38 -23
- package/src/v4/PublicApi/Components/AmityPostCommentComponent/ReplyCommentList/styles.ts +5 -7
- package/src/v4/PublicApi/Components/AmityPostContentComponent/AmityPostContentComponent.tsx +2 -1
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/DetailStyle.tsx +1 -1
- package/src/v4/PublicApi/Components/AmityPostEngagementActionsComponent/Components/FeedStyle.tsx +1 -1
- package/src/v4/PublicApi/Elements/ButtonWithIconElement/styles.ts +3 -2
- package/src/v4/PublicApi/Elements/CommonElements/AvatarElement.tsx +23 -10
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/AmityCommunityProfilePage.tsx +24 -25
- package/src/v4/PublicApi/Pages/AmityCommunityProfilePage/styles.ts +2 -2
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/AmityCreateLivestreamPage.tsx +273 -101
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/RoomView.tsx +48 -0
- package/src/v4/PublicApi/Pages/AmityCreateLivestreamPage/styles.ts +72 -3
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/AmityLivestreamPlayerPage.tsx +150 -155
- package/src/v4/PublicApi/Pages/AmityLivestreamPlayerPage/styles.ts +3 -1
- package/src/v4/PublicApi/Pages/AmityPostDetailPage/AmityPostDetailPage.tsx +20 -1
- package/src/v4/PublicApi/Pages/AmitySocialGlobalSearchPage/AmitySocialGlobalSearchPage.tsx +0 -1
- package/src/v4/PublicApi/Pages/AmityUserProfilePage/AmityUserProfilePage.tsx +24 -7
- package/src/v4/PublicApi/Pages/AmityViewStoryPage/Components/AmityViewStoryItem.tsx +1 -1
- package/src/v4/assets/icons/poll.tsx +2 -2
- package/src/v4/component/LivestreamContent/index.tsx +22 -22
- package/src/v4/component/MyAvatar/MyAvatar.tsx +12 -6
- package/src/v4/component/PollContent/PollResults.tsx +1 -0
- package/src/v4/component/PostContent/index.tsx +6 -8
- package/src/v4/component/PostMenu/index.tsx +2 -2
- package/src/v4/component/RenderTextWithMention/RenderTextWithMention.tsx +16 -10
- package/src/v4/component/SearchResultItem/SearchResultItem.tsx +3 -0
- package/src/v4/component/Toast/index.tsx +1 -1
- package/src/v4/component/Toast/styles.ts +2 -2
- package/src/v4/constants/index.ts +4 -0
- package/src/v4/elements/CommunityCreatePostButton/CommunityCreatePostButton.tsx +1 -1
- package/src/v4/engine/AssetDownloader.ts +1 -1
- package/src/v4/enum/roomStatus.ts +8 -0
- package/src/v4/features/room/hooks/useRoom.ts +20 -0
- package/src/v4/hook/index.ts +2 -0
- package/src/v4/hook/useCustomRankingGlobalFeed.ts +1 -1
- package/src/v4/hook/usePostSubscription.ts +34 -0
- package/src/v4/hook/useRoomSubscription.ts +19 -0
- package/src/v4/index.tsx +1 -1
- package/src/v4/routes/AmityPageRenderer.tsx +6 -0
- package/src/v4/routes/AmitySocialUIKitV4Navigator.tsx +5 -1
- package/src/v4/routes/RouteParamList.tsx +2 -1
- package/src/v4/screen/GlobalBan/GlobalBan.tsx +38 -0
- package/src/v4/screen/GlobalBan/index.ts +1 -0
- package/src/v4/screen/GlobalBan/styles.ts +39 -0
- package/src/v4/screen/PostDetail/index.tsx +1 -0
- package/src/v4/stores/slices/toast.ts +5 -0
- package/uikit.config.json +1 -1
- package/lib/commonjs/v4/enum/livestreamStatus.js +0 -13
- package/lib/commonjs/v4/enum/livestreamStatus.js.map +0 -1
- package/lib/module/v4/enum/livestreamStatus.js +0 -7
- package/lib/module/v4/enum/livestreamStatus.js.map +0 -1
- package/lib/typescript/src/v4/enum/livestreamStatus.d.ts +0 -7
- package/lib/typescript/src/v4/enum/livestreamStatus.d.ts.map +0 -1
- package/src/v4/enum/livestreamStatus.ts +0 -6
|
@@ -16,7 +16,7 @@ import { useStyles } from './styles';
|
|
|
16
16
|
import useImagePicker from '../../../src/hooks/useImagePicker';
|
|
17
17
|
import { uploadImageFile } from '../../../src/providers/file-provider';
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import { PostRepository, RoomRepository } from '@amityco/ts-sdk-react-native';
|
|
20
20
|
import BottomSheet, { BottomSheetMethods } from '@devvie/bottom-sheet';
|
|
21
21
|
|
|
22
22
|
// import {
|
|
@@ -55,7 +55,7 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
55
55
|
|
|
56
56
|
const [title, setTitle] = useState<string>('');
|
|
57
57
|
const [description, setDescription] = useState<string>('');
|
|
58
|
-
const [
|
|
58
|
+
const [room, setRoom] = useState<Amity.Room | null>(null);
|
|
59
59
|
const [isLive, setIsLive] = useState<boolean>(false);
|
|
60
60
|
const [timer] = useState<number | null>(null);
|
|
61
61
|
|
|
@@ -141,16 +141,16 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
141
141
|
}, []);
|
|
142
142
|
|
|
143
143
|
const createStreamPost = useCallback(
|
|
144
|
-
(
|
|
144
|
+
(newRoom: Amity.Room) => {
|
|
145
145
|
const params = {
|
|
146
146
|
targetId,
|
|
147
147
|
targetType,
|
|
148
|
-
dataType: '
|
|
148
|
+
dataType: 'room' as Amity.PostContentType,
|
|
149
149
|
data: {
|
|
150
|
-
text: `${
|
|
151
|
-
|
|
150
|
+
text: `${newRoom.title}${
|
|
151
|
+
newRoom.description ? `\n\n${newRoom.description}` : ''
|
|
152
152
|
}`,
|
|
153
|
-
|
|
153
|
+
roomId: newRoom.roomId,
|
|
154
154
|
},
|
|
155
155
|
};
|
|
156
156
|
|
|
@@ -168,18 +168,18 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
168
168
|
|
|
169
169
|
if (imageUri) fileId = await uploadFile(imageUri);
|
|
170
170
|
|
|
171
|
-
const { data:
|
|
171
|
+
const { data: newRoom } = await RoomRepository.createRoom({
|
|
172
172
|
title,
|
|
173
173
|
description: description || undefined,
|
|
174
174
|
thumbnailFileId: fileId,
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
if (
|
|
178
|
-
const { data: newPost } = await createStreamPost(
|
|
179
|
-
|
|
177
|
+
if (newRoom) {
|
|
178
|
+
const { data: newPost } = await createStreamPost(newRoom);
|
|
179
|
+
setRoom(newRoom);
|
|
180
180
|
setPost(newPost);
|
|
181
181
|
|
|
182
|
-
streamRef?.current.startPublish(
|
|
182
|
+
streamRef?.current.startPublish(newRoom.roomId);
|
|
183
183
|
}
|
|
184
184
|
} else emptyTitleAlert();
|
|
185
185
|
}, [title, description, createStreamPost, imageUri, uploadFile]);
|
|
@@ -193,17 +193,17 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
193
193
|
// };
|
|
194
194
|
|
|
195
195
|
const onStopStream = useCallback(async () => {
|
|
196
|
-
if (
|
|
196
|
+
if (room) {
|
|
197
197
|
setIsEnding(true);
|
|
198
198
|
try {
|
|
199
|
-
await
|
|
199
|
+
await RoomRepository.stopRoom(room.roomId);
|
|
200
200
|
} catch (e) {
|
|
201
|
-
console.log('
|
|
201
|
+
console.log('stopRoom error', e);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
streamRef?.current.stopPublish();
|
|
205
205
|
setIsLive(false);
|
|
206
|
-
|
|
206
|
+
setRoom(null);
|
|
207
207
|
setTitle(undefined);
|
|
208
208
|
setDescription(undefined);
|
|
209
209
|
setTime(0);
|
|
@@ -214,7 +214,7 @@ const CreateLivestream = ({ navigation, route }) => {
|
|
|
214
214
|
postId: post.postId,
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
}, [
|
|
217
|
+
}, [room, timer, post, navigation]);
|
|
218
218
|
|
|
219
219
|
const onSwitchCamera = () => {
|
|
220
220
|
streamRef?.current.switchCamera();
|
|
@@ -7,14 +7,11 @@ import {
|
|
|
7
7
|
} from 'react-native';
|
|
8
8
|
import { useStyles } from './styles';
|
|
9
9
|
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
// import { AmityStreamPlayer } from '@amityco/video-player-react-native';
|
|
12
|
-
|
|
13
10
|
import LivestreamEndedView from '../../v4/component/LivestreamContent/LivestreamEndedThumbnail';
|
|
14
11
|
import { Animated } from 'react-native';
|
|
15
12
|
import { SvgXml } from 'react-native-svg';
|
|
16
13
|
import { closeIcon, playIcon, stopIcon } from '../../svg/svg-xml-list';
|
|
17
|
-
import {
|
|
14
|
+
import { RoomRepository } from '@amityco/ts-sdk-react-native';
|
|
18
15
|
|
|
19
16
|
const LiveStreamPlayer = ({ navigation, route }) => {
|
|
20
17
|
const ref = useRef<any>(null);
|
|
@@ -24,9 +21,9 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
24
21
|
|
|
25
22
|
const [isPlaying, setIsPlaying] = useState(true);
|
|
26
23
|
|
|
27
|
-
const {
|
|
24
|
+
const { roomId } = route.params;
|
|
28
25
|
|
|
29
|
-
const [livestream, setLivestream] = useState<Amity.
|
|
26
|
+
const [livestream, setLivestream] = useState<Amity.Room>();
|
|
30
27
|
|
|
31
28
|
const onClosePlayer = () => {
|
|
32
29
|
navigation.goBack();
|
|
@@ -59,15 +56,12 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
59
56
|
|
|
60
57
|
useEffect(() => {
|
|
61
58
|
const getLivestream = () => {
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
(
|
|
65
|
-
|
|
66
|
-
if (!loading && data) {
|
|
67
|
-
setLivestream({ ...data });
|
|
68
|
-
}
|
|
59
|
+
return RoomRepository.getRoom(roomId, ({ data, loading, error }) => {
|
|
60
|
+
if (error) console.error('Error fetching livestream', error);
|
|
61
|
+
if (!loading && data) {
|
|
62
|
+
setLivestream({ ...data });
|
|
69
63
|
}
|
|
70
|
-
);
|
|
64
|
+
});
|
|
71
65
|
};
|
|
72
66
|
|
|
73
67
|
const unsubscribe = getLivestream();
|
|
@@ -75,7 +69,7 @@ const LiveStreamPlayer = ({ navigation, route }) => {
|
|
|
75
69
|
return () => {
|
|
76
70
|
unsubscribe();
|
|
77
71
|
};
|
|
78
|
-
}, [
|
|
72
|
+
}, [roomId]);
|
|
79
73
|
|
|
80
74
|
return (
|
|
81
75
|
<View style={styles.container}>
|
package/src/svg/svg-xml-list.ts
CHANGED
|
@@ -396,7 +396,7 @@ export const editThumbnailIcon = (
|
|
|
396
396
|
export const livestreamIcon = (
|
|
397
397
|
color: string = '#292B32'
|
|
398
398
|
) => `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
399
|
-
<path d="M8.41406 8.
|
|
399
|
+
<path d="M8.41406 8.80469C8.51953 8.91016 8.58984 9.01562 8.58984 9.19141C8.58984 9.29688 8.55469 9.4375 8.48438 9.50781C7.85156 10.2812 7.5 11.2305 7.5 12.2852C7.5 13.3047 7.85156 14.2539 8.48438 15.0273C8.55469 15.0977 8.58984 15.2383 8.58984 15.3438C8.58984 15.5195 8.51953 15.625 8.41406 15.7305L8.02734 16.1172C7.92188 16.2227 7.78125 16.293 7.64062 16.293C7.46484 16.293 7.28906 16.2227 7.18359 16.082C6.30469 15.0625 5.8125 13.7266 5.8125 12.25C5.8125 10.8086 6.30469 9.47266 7.18359 8.45312C7.28906 8.3125 7.46484 8.24219 7.64062 8.24219C7.78125 8.24219 7.92188 8.3125 8.02734 8.41797L8.41406 8.80469ZM5.63672 6.0625C5.84766 6.27344 5.84766 6.58984 5.63672 6.83594C4.33594 8.27734 3.5625 10.1758 3.5625 12.2852C3.5625 14.3594 4.33594 16.2578 5.63672 17.6992C5.84766 17.9453 5.84766 18.2617 5.63672 18.4727L5.25 18.8594C5.14453 18.9648 5.00391 19.0352 4.82812 19.0352C4.65234 19.0352 4.51172 18.9297 4.40625 18.8242C2.75391 16.9961 1.875 14.7109 1.875 12.25C1.875 9.82422 2.75391 7.50391 4.40625 5.71094C4.51172 5.60547 4.65234 5.53516 4.82812 5.53516C5.00391 5.53516 5.14453 5.57031 5.25 5.67578L5.63672 6.0625ZM19.5586 5.71094C21.2109 7.50391 22.125 9.82422 22.125 12.25C22.125 14.7109 21.2109 16.9961 19.5586 18.8242C19.4531 18.9297 19.3125 19 19.1367 19C18.9609 19 18.8203 18.9648 18.75 18.8594L18.3281 18.4727C18.1172 18.2617 18.1172 17.9453 18.3281 17.6992C19.6289 16.2578 20.4023 14.3594 20.4023 12.25C20.4023 10.1758 19.6289 8.27734 18.3281 6.83594C18.1172 6.58984 18.1172 6.27344 18.3281 6.0625L18.75 5.67578C18.8203 5.57031 18.9609 5.5 19.1367 5.5C19.3125 5.5 19.4531 5.60547 19.5586 5.71094ZM12 10.2812C13.0547 10.2812 13.9688 11.1953 13.9688 12.25C13.9688 13.3398 13.0547 14.2188 12 14.2188C10.9102 14.2188 10.0312 13.3398 10.0312 12.25C10.0312 11.1953 10.9102 10.2812 12 10.2812ZM15.9375 8.41797C16.043 8.3125 16.1836 8.24219 16.3242 8.24219C16.5 8.24219 16.6758 8.3125 16.7812 8.45312C17.6602 9.47266 18.1523 10.8086 18.1523 12.2852C18.1523 13.7266 17.6602 15.0625 16.7812 16.082C16.6758 16.2227 16.5 16.293 16.3242 16.293C16.1836 16.293 16.043 16.2227 15.9375 16.1172L15.5508 15.7305C15.4453 15.625 15.375 15.5195 15.375 15.3438C15.375 15.2383 15.4102 15.0977 15.4805 15.0273C16.1133 14.2539 16.4648 13.3047 16.4648 12.25C16.4648 11.2305 16.1133 10.2812 15.4805 9.50781C15.4102 9.4375 15.375 9.29688 15.375 9.19141C15.375 9.01562 15.4453 8.91016 15.5508 8.80469L15.9375 8.41797Z" fill=${color}/>
|
|
400
400
|
</svg>
|
|
401
401
|
`;
|
|
402
402
|
|
package/src/v4/PublicApi/Components/AmityCreatePostMenuComponent/AmityCreatePostMenuComponent.tsx
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { useCallback, memo } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { ComponentID,
|
|
3
|
+
import { ComponentID, PageID } from '../../../enum/enumUIKitID';
|
|
4
4
|
import { useAmityComponent, useStoryPermission } from '../../../hook';
|
|
5
5
|
import { useBehaviour } from '../../../providers/BehaviourProvider';
|
|
6
6
|
import { useNavigation } from '@react-navigation/native';
|
|
7
7
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
8
8
|
import { RootStackParamList } from '../../../../v4/routes/RouteParamList';
|
|
9
|
-
import ButtonWithIconElement from '../../Elements/ButtonWithIconElement/ButtonWithIconElement';
|
|
10
9
|
import { AmityPostTargetSelectionPageType } from '../../../enum';
|
|
10
|
+
import { livestream, poll, post, story } from '../../../../v4/assets/icons';
|
|
11
|
+
import MenuAction from '../../../../v4/elements/MenuAction';
|
|
11
12
|
|
|
12
13
|
interface AmityCreatePostMenuComponentProps {
|
|
13
14
|
pageId?: PageID;
|
|
@@ -32,6 +33,13 @@ const AmityCreatePostMenuComponent = ({
|
|
|
32
33
|
backgroundColor: themeStyles.colors.background,
|
|
33
34
|
borderRadius: 12,
|
|
34
35
|
},
|
|
36
|
+
menu: {
|
|
37
|
+
gap: 12,
|
|
38
|
+
paddingVertical: 12,
|
|
39
|
+
paddingHorizontal: 16,
|
|
40
|
+
flexDirection: 'row',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
},
|
|
35
43
|
});
|
|
36
44
|
|
|
37
45
|
const onPressCreatePost = useCallback(
|
|
@@ -62,14 +70,14 @@ const AmityCreatePostMenuComponent = ({
|
|
|
62
70
|
navigation.navigate('PollTargetSelection');
|
|
63
71
|
},
|
|
64
72
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
[AmityPostTargetSelectionPageType.livestream]: () => {
|
|
74
|
+
if (
|
|
75
|
+
AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage
|
|
76
|
+
) {
|
|
77
|
+
AmityCreatePostMenuComponentBehavior.goToSelectLivestreamPostTargetPage();
|
|
78
|
+
}
|
|
79
|
+
navigation.navigate('LivestreamPostTargetSelection');
|
|
80
|
+
},
|
|
73
81
|
};
|
|
74
82
|
postTypeHandlers[postType]?.();
|
|
75
83
|
},
|
|
@@ -78,36 +86,44 @@ const AmityCreatePostMenuComponent = ({
|
|
|
78
86
|
|
|
79
87
|
return (
|
|
80
88
|
<View style={styles.container}>
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
<MenuAction
|
|
90
|
+
onPress={() => onPressCreatePost(AmityPostTargetSelectionPageType.post)}
|
|
91
|
+
style={styles.menu}
|
|
92
|
+
label="Post"
|
|
93
|
+
iconProps={{
|
|
94
|
+
xml: post(),
|
|
95
|
+
}}
|
|
86
96
|
/>
|
|
87
97
|
{hasStoryPermission && (
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
<MenuAction
|
|
99
|
+
style={styles.menu}
|
|
100
|
+
label="Story"
|
|
101
|
+
iconProps={{
|
|
102
|
+
xml: story(),
|
|
103
|
+
}}
|
|
104
|
+
onPress={() =>
|
|
93
105
|
onPressCreatePost(AmityPostTargetSelectionPageType.story)
|
|
94
106
|
}
|
|
95
107
|
/>
|
|
96
108
|
)}
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
<MenuAction
|
|
110
|
+
style={styles.menu}
|
|
111
|
+
label="Poll"
|
|
112
|
+
iconProps={{
|
|
113
|
+
xml: poll(),
|
|
114
|
+
}}
|
|
115
|
+
onPress={() => onPressCreatePost(AmityPostTargetSelectionPageType.poll)}
|
|
102
116
|
/>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
<MenuAction
|
|
118
|
+
style={styles.menu}
|
|
119
|
+
label="Livestream"
|
|
120
|
+
iconProps={{
|
|
121
|
+
xml: livestream(),
|
|
122
|
+
}}
|
|
123
|
+
onPress={() =>
|
|
108
124
|
onPressCreatePost(AmityPostTargetSelectionPageType.livestream)
|
|
109
125
|
}
|
|
110
|
-
/>
|
|
126
|
+
/>
|
|
111
127
|
</View>
|
|
112
128
|
);
|
|
113
129
|
};
|
|
@@ -15,13 +15,11 @@ import { deleteCommentById } from '../../../../providers/Social/comment-sdk';
|
|
|
15
15
|
import { ComponentID, PageID } from '../../../enum';
|
|
16
16
|
import { useAmityComponent } from '../../../hook';
|
|
17
17
|
import ContentLoader, { Circle, Rect } from 'react-content-loader/native';
|
|
18
|
-
import uiSlice from '../../../../redux/slices/uiSlice';
|
|
19
18
|
import { isAmityAd } from '../../../hook/useCustomRankingGlobalFeed';
|
|
20
19
|
import CommentAdComponent from '../../../component/CommentAdComponent/CommentAdComponent';
|
|
21
20
|
import { usePaginatorApi } from '../../../hook/usePaginator';
|
|
22
21
|
import { useCommentAdImpression } from '../../../hook/useCommentAdImpression';
|
|
23
22
|
import { useStyles } from './styles';
|
|
24
|
-
import { useUIKitDispatch } from '../../../../redux/store';
|
|
25
23
|
|
|
26
24
|
export interface IComment {
|
|
27
25
|
commentId: string;
|
|
@@ -69,8 +67,6 @@ const AmityPostCommentComponent: FC<AmityPostCommentComponentType> = ({
|
|
|
69
67
|
componentId,
|
|
70
68
|
});
|
|
71
69
|
const styles = useStyles();
|
|
72
|
-
const dispatch = useUIKitDispatch();
|
|
73
|
-
const { showToastMessage } = uiSlice.actions;
|
|
74
70
|
const onNextPageRef = useRef<() => void | null>(null);
|
|
75
71
|
const [commentList, setCommentList] = useState<IComment[]>([]);
|
|
76
72
|
const [isLoading, setIsLoading] = useState(true);
|
|
@@ -95,11 +91,7 @@ const AmityPostCommentComponent: FC<AmityPostCommentComponentType> = ({
|
|
|
95
91
|
referenceType: postType,
|
|
96
92
|
limit: commentListLimit,
|
|
97
93
|
},
|
|
98
|
-
async ({
|
|
99
|
-
if (error) {
|
|
100
|
-
dispatch(showToastMessage({ toastMessage: "Couldn't load comment" }));
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
94
|
+
async ({ loading, data, hasNextPage, onNextPage }) => {
|
|
103
95
|
if (!loading) {
|
|
104
96
|
data && data.length > 0 && (await queryComment(data));
|
|
105
97
|
onNextPageRef.current = hasNextPage ? onNextPage : null;
|
|
@@ -113,7 +105,7 @@ const AmityPostCommentComponent: FC<AmityPostCommentComponentType> = ({
|
|
|
113
105
|
setCommentList([]);
|
|
114
106
|
unsubComment();
|
|
115
107
|
};
|
|
116
|
-
}, [
|
|
108
|
+
}, [postId, postType]);
|
|
117
109
|
|
|
118
110
|
const queryComment = async (comments: Amity.InternalComment[]) => {
|
|
119
111
|
const formattedCommentList = await Promise.all(
|
|
@@ -124,7 +116,8 @@ const AmityPostCommentComponent: FC<AmityPostCommentComponentType> = ({
|
|
|
124
116
|
formattedUserObject = {
|
|
125
117
|
userId: userObject.data.userId,
|
|
126
118
|
displayName: userObject.data.displayName,
|
|
127
|
-
avatarFileId: userObject.data
|
|
119
|
+
avatarFileId: userObject.data?.avatarFileId,
|
|
120
|
+
avatarCustomUrl: userObject.data?.avatarCustomUrl,
|
|
128
121
|
};
|
|
129
122
|
|
|
130
123
|
return {
|
package/src/v4/PublicApi/Components/AmityPostCommentComponent/CommentListItem/CommentListItem.tsx
CHANGED
|
@@ -48,6 +48,9 @@ import { LinkPreview } from '../../../../component/PreviewLink/LinkPreview';
|
|
|
48
48
|
import AmityReactionListComponent from '../../AmityReactionListComponent/AmityReactionListComponent';
|
|
49
49
|
import uiSlice from '../../../../../redux/slices/uiSlice';
|
|
50
50
|
import { useUIKitDispatch } from '../../../../../redux/store';
|
|
51
|
+
import { useNavigation } from '@react-navigation/native';
|
|
52
|
+
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
53
|
+
import { RootStackParamList } from '../../../../routes/RouteParamList';
|
|
51
54
|
|
|
52
55
|
export interface IComment {
|
|
53
56
|
commentId: string;
|
|
@@ -129,6 +132,8 @@ const CommentListItem = ({
|
|
|
129
132
|
const [isEditComment, setIsEditComment] = useState<boolean>(false);
|
|
130
133
|
const slideAnimation = useRef(new Animated.Value(0)).current;
|
|
131
134
|
const [isReactionListVisible, setIsReactionListVisible] = useState(false);
|
|
135
|
+
const navigation =
|
|
136
|
+
useNavigation<NativeStackNavigationProp<RootStackParamList>>();
|
|
132
137
|
|
|
133
138
|
useEffect(() => {
|
|
134
139
|
getReplyComments();
|
|
@@ -175,6 +180,7 @@ const CommentListItem = ({
|
|
|
175
180
|
userId: userObject.data.userId,
|
|
176
181
|
displayName: userObject.data.displayName,
|
|
177
182
|
avatarFileId: userObject.data.avatarFileId,
|
|
183
|
+
avatarCustomUrl: userObject.data?.avatarCustomUrl,
|
|
178
184
|
};
|
|
179
185
|
|
|
180
186
|
return {
|
|
@@ -317,21 +323,41 @@ const CommentListItem = ({
|
|
|
317
323
|
return (
|
|
318
324
|
<View key={commentId} style={styles.commentWrap}>
|
|
319
325
|
<View style={styles.headerSection}>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
<TouchableOpacity
|
|
327
|
+
onPress={() => {
|
|
328
|
+
user?.userId &&
|
|
329
|
+
navigation.navigate('UserProfile', {
|
|
330
|
+
userId: user?.userId || '',
|
|
331
|
+
});
|
|
332
|
+
}}
|
|
333
|
+
>
|
|
334
|
+
{user?.avatarFileId ? (
|
|
335
|
+
<Image
|
|
336
|
+
style={styles.avatar}
|
|
337
|
+
source={{
|
|
338
|
+
uri: user?.avatarCustomUrl
|
|
339
|
+
? user?.avatarCustomUrl
|
|
340
|
+
: `https://api.${apiRegion}.amity.co/api/v3/files/${user?.avatarFileId}/download`,
|
|
341
|
+
}}
|
|
342
|
+
/>
|
|
343
|
+
) : (
|
|
344
|
+
<View style={styles.avatar}>
|
|
345
|
+
<SvgXml xml={personXml} width="20" height="16" />
|
|
346
|
+
</View>
|
|
347
|
+
)}
|
|
348
|
+
</TouchableOpacity>
|
|
332
349
|
<View style={styles.rightSection}>
|
|
333
350
|
<View style={styles.commentBubble}>
|
|
334
|
-
<
|
|
351
|
+
<TouchableOpacity
|
|
352
|
+
onPress={() => {
|
|
353
|
+
user?.userId &&
|
|
354
|
+
navigation.navigate('UserProfile', {
|
|
355
|
+
userId: user?.userId || '',
|
|
356
|
+
});
|
|
357
|
+
}}
|
|
358
|
+
>
|
|
359
|
+
<Text style={styles.headerText}>{user?.displayName}</Text>
|
|
360
|
+
</TouchableOpacity>
|
|
335
361
|
{targetType === 'community' && targetId && (
|
|
336
362
|
<View style={{ marginVertical: 6 }}>
|
|
337
363
|
<ModeratorBadgeElement
|
|
@@ -410,7 +436,6 @@ const CommentListItem = ({
|
|
|
410
436
|
previewReplyCommentList[previewReplyCommentList.length - 1]
|
|
411
437
|
}
|
|
412
438
|
onDelete={onDelete}
|
|
413
|
-
onHandleReply={onHandleReply}
|
|
414
439
|
/>
|
|
415
440
|
)}
|
|
416
441
|
{isOpenReply && replyCommentList?.length > 0 && (
|
|
@@ -421,7 +446,6 @@ const CommentListItem = ({
|
|
|
421
446
|
commentId={item.commentId}
|
|
422
447
|
commentDetail={item}
|
|
423
448
|
onDelete={onDelete}
|
|
424
|
-
onHandleReply={onHandleReply}
|
|
425
449
|
/>
|
|
426
450
|
)}
|
|
427
451
|
keyExtractor={(item) => item.commentId}
|
|
@@ -91,16 +91,17 @@ export const useStyles = () => {
|
|
|
91
91
|
rowContainer: {
|
|
92
92
|
flexDirection: 'row',
|
|
93
93
|
alignItems: 'center',
|
|
94
|
+
gap: 8,
|
|
94
95
|
},
|
|
95
96
|
likedText: {
|
|
96
97
|
color: theme.colors.primary,
|
|
97
|
-
fontSize:
|
|
98
|
+
fontSize: 13,
|
|
98
99
|
fontWeight: '600',
|
|
99
100
|
marginLeft: 1,
|
|
100
101
|
},
|
|
101
102
|
btnText: {
|
|
102
103
|
color: theme.colors.baseShade2,
|
|
103
|
-
fontSize:
|
|
104
|
+
fontSize: 13,
|
|
104
105
|
fontWeight: '600',
|
|
105
106
|
},
|
|
106
107
|
threeDots: {
|
|
@@ -42,6 +42,9 @@ import AmityReactionListComponent from '../../AmityReactionListComponent/AmityRe
|
|
|
42
42
|
import RenderTextWithMention from '../../../../component/RenderTextWithMention/RenderTextWithMention';
|
|
43
43
|
import uiSlice from '../../../../../redux/slices/uiSlice';
|
|
44
44
|
import { useUIKitDispatch } from '../../../../../redux/store';
|
|
45
|
+
import { useNavigation } from '@react-navigation/native';
|
|
46
|
+
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
47
|
+
import { RootStackParamList } from '../../../../routes/RouteParamList';
|
|
45
48
|
|
|
46
49
|
export interface IComment {
|
|
47
50
|
commentId: string;
|
|
@@ -65,14 +68,12 @@ export interface IReplyCommentList {
|
|
|
65
68
|
commentId: string;
|
|
66
69
|
commentDetail: IComment;
|
|
67
70
|
onDelete?: (commentId: string) => void;
|
|
68
|
-
onHandleReply?: (user: UserInterface, commentId: string) => void;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
const ReplyCommentList = ({
|
|
72
74
|
commentDetail,
|
|
73
75
|
onDelete,
|
|
74
76
|
commentId,
|
|
75
|
-
onHandleReply,
|
|
76
77
|
}: IReplyCommentList) => {
|
|
77
78
|
const {
|
|
78
79
|
data,
|
|
@@ -99,7 +100,6 @@ const ReplyCommentList = ({
|
|
|
99
100
|
const [likeReaction, setLikeReaction] = useState<number>(
|
|
100
101
|
reactions.like ? reactions.like : 0
|
|
101
102
|
);
|
|
102
|
-
|
|
103
103
|
const { client, apiRegion } = useAuth();
|
|
104
104
|
const [textComment, setTextComment] = useState<string>(data.text);
|
|
105
105
|
const [isVisible, setIsVisible] = useState(false);
|
|
@@ -108,6 +108,8 @@ const ReplyCommentList = ({
|
|
|
108
108
|
const [editCommentModal, setEditCommentModal] = useState<boolean>(false);
|
|
109
109
|
const [isEditComment, setIsEditComment] = useState<boolean>(false);
|
|
110
110
|
const slideAnimation = useRef(new Animated.Value(0)).current;
|
|
111
|
+
const navigation =
|
|
112
|
+
useNavigation<NativeStackNavigationProp<RootStackParamList>>();
|
|
111
113
|
|
|
112
114
|
const openModal = () => {
|
|
113
115
|
setIsVisible(true);
|
|
@@ -215,28 +217,44 @@ const ReplyCommentList = ({
|
|
|
215
217
|
setIsReactionListVisible(true);
|
|
216
218
|
};
|
|
217
219
|
|
|
218
|
-
const onPressReply = () => {
|
|
219
|
-
onHandleReply && onHandleReply(user, commentId);
|
|
220
|
-
};
|
|
221
|
-
|
|
222
220
|
return (
|
|
223
221
|
<View key={commentId} style={styles.replyCommentWrap}>
|
|
224
222
|
<View style={styles.replyHeaderSection}>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
<
|
|
235
|
-
|
|
236
|
-
|
|
223
|
+
<TouchableOpacity
|
|
224
|
+
onPress={() =>
|
|
225
|
+
user?.userId &&
|
|
226
|
+
navigation.navigate('UserProfile', {
|
|
227
|
+
userId: user?.userId || '',
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
>
|
|
231
|
+
{user?.avatarFileId ? (
|
|
232
|
+
<Image
|
|
233
|
+
style={styles.avatar}
|
|
234
|
+
source={{
|
|
235
|
+
uri: user?.avatarCustomUrl
|
|
236
|
+
? user?.avatarCustomUrl
|
|
237
|
+
: `https://api.${apiRegion}.amity.co/api/v3/files/${user?.avatarFileId}/download`,
|
|
238
|
+
}}
|
|
239
|
+
/>
|
|
240
|
+
) : (
|
|
241
|
+
<View style={styles.avatar}>
|
|
242
|
+
<SvgXml xml={personXml} width="20" height="16" />
|
|
243
|
+
</View>
|
|
244
|
+
)}
|
|
245
|
+
</TouchableOpacity>
|
|
237
246
|
<View style={styles.rightSection}>
|
|
238
247
|
<View style={styles.commentBubble}>
|
|
239
|
-
<
|
|
248
|
+
<TouchableOpacity
|
|
249
|
+
onPress={() =>
|
|
250
|
+
user?.userId &&
|
|
251
|
+
navigation.navigate('UserProfile', {
|
|
252
|
+
userId: user?.userId || '',
|
|
253
|
+
})
|
|
254
|
+
}
|
|
255
|
+
>
|
|
256
|
+
<Text style={styles.headerText}>{user?.displayName}</Text>
|
|
257
|
+
</TouchableOpacity>
|
|
240
258
|
{targetType === 'community' && targetId && (
|
|
241
259
|
<View style={{ marginVertical: 6 }}>
|
|
242
260
|
<ModeratorBadgeElement
|
|
@@ -276,9 +294,6 @@ const ReplyCommentList = ({
|
|
|
276
294
|
{!isLike ? 'Like' : 'Liked'}
|
|
277
295
|
</Text>
|
|
278
296
|
</TouchableOpacity>
|
|
279
|
-
<TouchableOpacity onPress={onPressReply} style={styles.likeBtn}>
|
|
280
|
-
<Text style={styles.btnText}>Reply</Text>
|
|
281
|
-
</TouchableOpacity>
|
|
282
297
|
<TouchableOpacity onPress={openModal} style={styles.threeDots}>
|
|
283
298
|
<SvgXml
|
|
284
299
|
xml={threeDots(theme.colors.base)}
|
|
@@ -85,8 +85,8 @@ export const useStyles = () => {
|
|
|
85
85
|
},
|
|
86
86
|
likeBtn: {
|
|
87
87
|
flexDirection: 'row',
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
marginRight: 8,
|
|
89
|
+
alignItems: 'center',
|
|
90
90
|
},
|
|
91
91
|
actionSection: {
|
|
92
92
|
flex: 1,
|
|
@@ -97,18 +97,15 @@ export const useStyles = () => {
|
|
|
97
97
|
},
|
|
98
98
|
likedText: {
|
|
99
99
|
color: theme.colors.primary,
|
|
100
|
-
fontSize:
|
|
100
|
+
fontSize: 13,
|
|
101
101
|
fontWeight: '600',
|
|
102
|
-
marginHorizontal: 4,
|
|
103
102
|
},
|
|
104
103
|
btnText: {
|
|
105
104
|
color: theme.colors.baseShade2,
|
|
106
|
-
fontSize:
|
|
105
|
+
fontSize: 13,
|
|
107
106
|
fontWeight: '600',
|
|
108
|
-
marginHorizontal: 4,
|
|
109
107
|
},
|
|
110
108
|
threeDots: {
|
|
111
|
-
padding: 5,
|
|
112
109
|
opacity: 0.5,
|
|
113
110
|
},
|
|
114
111
|
modalContainer: {
|
|
@@ -158,6 +155,7 @@ export const useStyles = () => {
|
|
|
158
155
|
rowContainer: {
|
|
159
156
|
flexDirection: 'row',
|
|
160
157
|
alignItems: 'center',
|
|
158
|
+
gap: 8,
|
|
161
159
|
},
|
|
162
160
|
});
|
|
163
161
|
|