mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-08 09:24:41 +00:00
The completed turn footer wrapped "Worked for 26s" onto two lines at full chat width in builds before #9007, which sized the duration to whichever label had more characters. A label with fewer characters can paint wider, so the duration wrapped inside the narrower timestamp's width. #9007 gives both labels the full label column; this locks that behaviour with a browser test using real layout. The browser test project could not load anything that reaches the toast context: react-native-web has no ToastAndroid, and native ESM rejects the named import. A react-native test shim re-exports react-native-web and adds it. The lucide test stub gains the icons the message module imports.
15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
// react-native-web has no ToastAndroid. The toast host imports it by name for its Android
|
|
// branch; Metro and Node tolerate the missing binding, but browser tests load native ESM,
|
|
// which rejects the import and fails every module that reaches the toast context.
|
|
export * from "react-native-web/dist/index.js";
|
|
|
|
export const ToastAndroid = {
|
|
SHORT: 0,
|
|
LONG: 1,
|
|
TOP: 0,
|
|
BOTTOM: 1,
|
|
CENTER: 2,
|
|
show() {},
|
|
showWithGravity() {},
|
|
};
|