@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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__require
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-BJTO5JO5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -3235,6 +3235,28 @@ var import_react_native31 = require("react-native");
|
|
|
3235
3235
|
var import_nativewind = require("nativewind");
|
|
3236
3236
|
var import_portal = require("@rn-primitives/portal");
|
|
3237
3237
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3238
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
3239
|
+
try {
|
|
3240
|
+
const { LogBox } = require("react-native");
|
|
3241
|
+
LogBox?.ignoreLogs?.([
|
|
3242
|
+
"You are setting the style `{ shadowOffset: ... }` as a prop",
|
|
3243
|
+
"You are setting the style"
|
|
3244
|
+
]);
|
|
3245
|
+
if (!Boolean(console.error?.__beyond_ui_filtered)) {
|
|
3246
|
+
const originalError = console.error;
|
|
3247
|
+
const filteredError = (...args) => {
|
|
3248
|
+
const fullMessage = args.map((arg) => typeof arg === "string" ? arg : "").join(" ");
|
|
3249
|
+
if (fullMessage.includes("shadowOffset") || fullMessage.includes("You are setting the style")) {
|
|
3250
|
+
return;
|
|
3251
|
+
}
|
|
3252
|
+
originalError(...args);
|
|
3253
|
+
};
|
|
3254
|
+
filteredError.__beyond_ui_filtered = true;
|
|
3255
|
+
console.error = filteredError;
|
|
3256
|
+
}
|
|
3257
|
+
} catch (_) {
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3238
3260
|
var BeyondUIContext = React26.createContext({
|
|
3239
3261
|
colorScheme: "light",
|
|
3240
3262
|
setColorScheme: () => {
|