@beyondcorp/beyond-ui-native 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BJTO5JO5.mjs +11 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -0
- package/dist/index.mjs.map +1 -1
- package/dist/preset.mjs +1 -0
- package/dist/utilities.mjs +1 -0
- package/package.json +1 -1
- package/src/providers/BeyondUIProvider.tsx +29 -0
package/dist/preset.mjs
CHANGED
package/dist/utilities.mjs
CHANGED
package/package.json
CHANGED
|
@@ -5,6 +5,35 @@ import { PortalHost } from "@rn-primitives/portal";
|
|
|
5
5
|
import { ToastContext, ToastItem, ToastContextValue } from "../components/toast/types";
|
|
6
6
|
import { ToastContainer } from "../components/toast/toast";
|
|
7
7
|
|
|
8
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
9
|
+
try {
|
|
10
|
+
const { LogBox } = require("react-native");
|
|
11
|
+
LogBox?.ignoreLogs?.([
|
|
12
|
+
"You are setting the style `{ shadowOffset: ... }` as a prop",
|
|
13
|
+
"You are setting the style",
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
if (!Boolean((console.error as any)?.__beyond_ui_filtered)) {
|
|
17
|
+
const originalError = console.error;
|
|
18
|
+
const filteredError = (...args: any[]) => {
|
|
19
|
+
const fullMessage = args
|
|
20
|
+
.map((arg) => (typeof arg === "string" ? arg : ""))
|
|
21
|
+
.join(" ");
|
|
22
|
+
|
|
23
|
+
if (
|
|
24
|
+
fullMessage.includes("shadowOffset") ||
|
|
25
|
+
fullMessage.includes("You are setting the style")
|
|
26
|
+
) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
originalError(...args);
|
|
30
|
+
};
|
|
31
|
+
(filteredError as any).__beyond_ui_filtered = true;
|
|
32
|
+
console.error = filteredError;
|
|
33
|
+
}
|
|
34
|
+
} catch (_) {}
|
|
35
|
+
}
|
|
36
|
+
|
|
8
37
|
export type ColorScheme = "light" | "dark" | "system";
|
|
9
38
|
|
|
10
39
|
export interface BeyondUIContextValue {
|