@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/preset.mjs CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  preset_default,
4
4
  tokens
5
5
  } from "./chunk-RNHEGFYR.mjs";
6
+ import "./chunk-BJTO5JO5.mjs";
6
7
  export {
7
8
  beyondUIPreset,
8
9
  preset_default as default,
@@ -3,6 +3,7 @@ import {
3
3
  getAccessibilityProps,
4
4
  joinA11yLabels
5
5
  } from "./chunk-UTNW3LJA.mjs";
6
+ import "./chunk-BJTO5JO5.mjs";
6
7
  export {
7
8
  cn,
8
9
  getAccessibilityProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beyondcorp/beyond-ui-native",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Accessible, NativeWind-first React Native component library for Beyond Softwares",
5
5
  "author": "Beyond Corp",
6
6
  "license": "MIT",
@@ -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 {