Skip to content
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

I want to place Time next to Bubble without any margins. #2490

Open
inumaruseiya opened this issue Apr 2, 2024 · 3 comments
Open

I want to place Time next to Bubble without any margins. #2490

inumaruseiya opened this issue Apr 2, 2024 · 3 comments

Comments

@inumaruseiya
Copy link

inumaruseiya commented Apr 2, 2024

Issue Description

I have written the code like this in renderBubble, but there are margins as shown in the image.

Simulator Screenshot - iPhone Xs - 2024-04-02 at 11 47 03

Steps to Reproduce / Code Snippets

<View style={styles.incomingContainer}> <Bubble {...props} containerStyle={{right:{ justifyContent:'flex-end',borderColor:'red',borderWidth:1,}}} renderTime={() => null} /> {renderTime(props)} </View>

Expected Results

スクリーンショット 2024-04-02 11 52 51

Additional Information

  • Nodejs version: [FILL THIS OUT]
  • React version: [FILL THIS OUT]
  • React Native version: [FILL THIS OUT]
  • react-native-gifted-chat version: [FILL THIS OUT]
  • Platform(s) (iOS, Android, or both?): [FILL THIS OUT]
  • TypeScript version: [FILL THIS OUT]
@fukemy
Copy link

fukemy commented Apr 4, 2024

show the incomingContainer styles, and check default styles of Time

@inumaruseiya
Copy link
Author

incomingContainer: { flexDirection: 'row', alignItems: 'flex-end', },

`<Time
{...props}
timeTextStyle={{
left: {
fontSize: 10,
color: '#808080',

        },
        right: {
          fontSize: 10,
          color: '#808080',
          
        },
      }}`

@fukemy
Copy link

fukemy commented Apr 8, 2024

you can put renderTime inside a View with styles: alignItems: flex-start

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

No branches or pull requests

2 participants