react-native-alert-notification icon indicating copy to clipboard operation
react-native-alert-notification copied to clipboard

Update Toast.tsx to support padding for modal

Open manhtruongwang opened this issue 8 months ago • 0 comments
trafficstars

Use Toast within modal will cause padding issue, the update will add a padding so Modal can have padding without the header safe area. Usage:

Toast.show({
        type: ALERT_TYPE.WARNING,
        textBody: t("t_check_your_input"),
        paddingTop: 10, // Default to original padding if not set 
      });
      return;

In Modal wrap the content in <AlertNotificationRoot>{children}</AlertNotificationRoot>

manhtruongwang avatar Mar 09 '25 18:03 manhtruongwang