Skip to content

feat: [FC-17] refactor custom bubble image and video #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hoangSTS
Copy link
Contributor

No description provided.

@hoangSTS hoangSTS changed the title feat: refactor custom bubble image and video feat: [FC-17] refactor custom bubble image and video Jul 19, 2024
} from 'react-native-fast-image';
import { MessageTypes, type MessageProps } from '../../../interfaces';

export interface CustomImageVideoBubbleProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to CustomImageBubbleProps

bubbleContainerStyle?: StyleProp<ViewStyle>;
bubbleStyle?: StyleProp<ViewStyle>;
imageStyle?: StyleProp<FastImageStyle>;
videoContainerStyle?: StyleProp<ViewStyle>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove videostyle props

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

import Video, { VideoRef } from 'react-native-video';
import { CustomImageVideoBubbleProps } from './CustomImageBubble';

export const CustomVideoBubble: React.FC<CustomImageVideoBubbleProps> = ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we create new CustomVideoBubbleProps in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants