Skip to content

Conversation

@bj97301
Copy link

@bj97301 bj97301 commented May 24, 2023

No description provided.

@Steven-MKN
Copy link

Hey fellows, any reason this has not been merged yet?

@bj97301
Copy link
Author

bj97301 commented Jun 28, 2024

Hey fellows, any reason this has not been merged yet?

Not sure... @tgmarinho any insights?

@zkteco-home
Copy link

when merge it?

@lucksp
Copy link

lucksp commented Sep 18, 2024

This would resolve #539

base: {
flexDirection: 'row',
height: HEIGHT,
width: WIDTH,
Copy link
Owner

Choose a reason for hiding this comment

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

I think we can keep the values, but as minWidth and minHeight

@davru
Copy link

davru commented Jan 24, 2025

This can be done by using BaseToast "style" and "contentContainerStyle" props

const Toast = (props) => {
  return <BaseToast
    {...props}
    text1NumberOfLines={0}
    text2NumberOfLines={0}
    contentContainerStyle={styles.contentContainer}
    style={styles.base}
  />
}

const styles = StyleSheet.create({
  base: {
    minHeight: 60,
    minWidth: 340,
    width: undefined,
    height: undefined,
    paddingVertical: 16,
  },
  contentContainer: {
    paddingHorizontal: 20,
  },
});

@Steven-MKN
Copy link

@davru Certainly there are workarounds, thanks for this one. But it does not discount that this is a bug tbh, UI elements need to be responsive

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.

7 participants