diff --git a/packages/react-native/Libraries/LogBox/LogBoxNotificationContainer.js b/packages/react-native/Libraries/LogBox/LogBoxNotificationContainer.js index 33593b2a2af2..1042525f9b39 100644 --- a/packages/react-native/Libraries/LogBox/LogBoxNotificationContainer.js +++ b/packages/react-native/Libraries/LogBox/LogBoxNotificationContainer.js @@ -111,15 +111,21 @@ export function LogBoxNotificationContainer(props: Props): React.Node { const styles = StyleSheet.create({ list: { + alignItems: 'center', bottom: 20, left: 10, right: 10, + // The container spans the width of the screen, so it passes touches outside the toasts through to the app, such + // as to a tab bar beside them. + pointerEvents: 'box-none', position: 'absolute', }, toast: { - borderRadius: 8, + borderRadius: 12, marginBottom: 5, + maxWidth: 600, overflow: 'hidden', + width: '100%', }, }); diff --git a/packages/react-native/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js b/packages/react-native/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js index cdcc0de1c6a4..224e8d337647 100644 --- a/packages/react-native/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +++ b/packages/react-native/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js @@ -24,8 +24,8 @@ export default function LogBoxNotificationDismissButton(props: { @@ -59,9 +63,11 @@ exports[`LogBoxNotificationContainer should render both an error and warning not @@ -116,8 +122,10 @@ exports[`LogBoxNotificationContainer should render the latest error notification @@ -175,8 +185,10 @@ exports[`LogBoxNotificationContainer should render the latest warning notificati