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

[question] is there anyway to adjust the width so it's not covering the full width of the screen? #203

Open
Akram11 opened this issue Nov 14, 2023 · 4 comments

Comments

@Akram11
Copy link

Akram11 commented Nov 14, 2023

I understand that the snackbar is not fully customisable (beyond fontColor, bgc, etc... )
but is there a way that I can adjust the width of the snackbar? if that's possible maybe also adjust the border radius ?

thanks!

@oferRounds
Copy link

Same question. Have you found any solution?

@Akram11
Copy link
Author

Akram11 commented Jan 11, 2025

@oferRounds,

Try this, worked for me:

         <Slider
             .
             .
             .
              trackStyle={styles.sliderTrack}
            />
            
            
 const styles = StyleSheet.create({
  sliderTrack: {height: 10, borderRadius: 20},
  .
  .
  .
});

@oferRounds
Copy link

hey @Akram11 – thank you!
Are you sure you relate to the Snackbar component? I see you mentioned a Slider component

@Akram11
Copy link
Author

Akram11 commented Jan 13, 2025

So sorry for the unrelated answer, @oferRounds. I totally missed the context..

I haven't found any solution to this issue, I actually moved away from using this library after all. Good luck!

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