@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/index.mjs CHANGED
@@ -7,6 +7,9 @@ import {
7
7
  getAccessibilityProps,
8
8
  joinA11yLabels
9
9
  } from "./chunk-UTNW3LJA.mjs";
10
+ import {
11
+ __require
12
+ } from "./chunk-BJTO5JO5.mjs";
10
13
 
11
14
  // src/primitives/box.tsx
12
15
  import * as React from "react";
@@ -3184,6 +3187,28 @@ import { View as View27, useColorScheme as useRNColorScheme } from "react-native
3184
3187
  import { colorScheme as nwColorScheme } from "nativewind";
3185
3188
  import { PortalHost } from "@rn-primitives/portal";
3186
3189
  import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
3190
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
3191
+ try {
3192
+ const { LogBox } = __require("react-native");
3193
+ LogBox?.ignoreLogs?.([
3194
+ "You are setting the style `{ shadowOffset: ... }` as a prop",
3195
+ "You are setting the style"
3196
+ ]);
3197
+ if (!Boolean(console.error?.__beyond_ui_filtered)) {
3198
+ const originalError = console.error;
3199
+ const filteredError = (...args) => {
3200
+ const fullMessage = args.map((arg) => typeof arg === "string" ? arg : "").join(" ");
3201
+ if (fullMessage.includes("shadowOffset") || fullMessage.includes("You are setting the style")) {
3202
+ return;
3203
+ }
3204
+ originalError(...args);
3205
+ };
3206
+ filteredError.__beyond_ui_filtered = true;
3207
+ console.error = filteredError;
3208
+ }
3209
+ } catch (_) {
3210
+ }
3211
+ }
3187
3212
  var BeyondUIContext = React26.createContext({
3188
3213
  colorScheme: "light",
3189
3214
  setColorScheme: () => {