react-native-snackbar icon indicating copy to clipboard operation
react-native-snackbar copied to clipboard

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

Open Akram11 opened this issue 2 years ago • 6 comments

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!

Akram11 avatar Nov 14 '23 15:11 Akram11

Same question. Have you found any solution?

oferRounds avatar Jan 10 '25 21:01 oferRounds

@oferRounds,

Try this, worked for me:

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

Akram11 avatar Jan 11 '25 16:01 Akram11

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

oferRounds avatar Jan 12 '25 05:01 oferRounds

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!

Akram11 avatar Jan 13 '25 09:01 Akram11

Hi! Thank you for his library! Is there any way to customize the snackbar component more?

I'd like to set containerStyle, textStyle and actionButtonStyle. Do you have any plans to implement it?

iliapnmrv avatar Apr 11 '25 04:04 iliapnmrv

Hi @iliapnmrv, no plans for any of your specific suggestions. If you submit a pull request I would be happy to review it.

cooperka avatar Apr 11 '25 20:04 cooperka