first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

21
node_modules/react-native-is-edge-to-edge/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Mathieu Acthernoene
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

40
node_modules/react-native-is-edge-to-edge/README.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
# react-native-is-edge-to-edge
Many libraries provide options to account for the transparency of status and navigation bars. For example, the [`useHideAnimation`](https://github.com/zoontek/react-native-bootsplash?tab=readme-ov-file#usehideanimation) hook in `react-native-bootsplash` includes `statusBarTranslucent` and `navigationBarTranslucent` options, while the [`useAnimatedKeyboard`](https://docs.swmansion.com/react-native-reanimated/docs/device/useAnimatedKeyboard) hook in `react-native-reanimated` offers an `isStatusBarTranslucentAndroid` option, among others.
> [!IMPORTANT]
> Until third-party libraries officially add support for `react-native-edge-to-edge` to set these options automatically, you may need to adjust them manually to prevent interference with the library.
To support library authors, we provide this lightweight package called `react-native-is-edge-to-edge` (note the `-is-`!), which checks whether `react-native-edge-to-edge` is installed, making it easier to update your library accordingly:
```tsx
import {
controlEdgeToEdgeValues,
isEdgeToEdge,
isEdgeToEdgeFromLibrary,
isEdgeToEdgeFromProperty,
} from "react-native-is-edge-to-edge";
const EDGE_TO_EDGE = isEdgeToEdge();
function MyAwesomeLibraryComponent({
statusBarTranslucent,
navigationBarTranslucent,
}) {
if (__DEV__) {
// warn the user once about unnecessary defined values
controlEdgeToEdgeValues({
statusBarTranslucent,
navigationBarTranslucent,
});
}
return (
<MyAwesomeLibraryNativeComponent
statusBarTranslucent={EDGE_TO_EDGE || statusBarTranslucent}
navigationBarTranslucent={EDGE_TO_EDGE || navigationBarTranslucent}
// …
/>
);
}
```

View File

@@ -0,0 +1,4 @@
export declare const isEdgeToEdgeFromLibrary: () => boolean;
export declare const isEdgeToEdgeFromProperty: () => boolean;
export declare const isEdgeToEdge: () => boolean;
export declare const controlEdgeToEdgeValues: (values: Record<string, unknown>) => void;

View File

@@ -0,0 +1,40 @@
'use strict';
var reactNative = require('react-native');
// src/index.android.ts
var warnings = /* @__PURE__ */ new Set();
var isEdgeToEdgeFromLibrary = () => reactNative.TurboModuleRegistry.get("RNEdgeToEdge") != null;
var isEdgeToEdgeFromProperty = () => {
var _a, _b;
return ((_b = (_a = reactNative.TurboModuleRegistry.get("DeviceInfo")) == null ? void 0 : _a.getConstants) == null ? void 0 : _b.call(_a).isEdgeToEdge) === true;
};
var isEdgeToEdge = () => isEdgeToEdgeFromLibrary() || isEdgeToEdgeFromProperty();
var controlEdgeToEdgeValues = (values) => {
if (__DEV__ && isEdgeToEdge()) {
const entries = Object.entries(values).filter(
([, value]) => typeof value !== "undefined"
);
const stableKey = entries.join(" ");
if (entries.length < 1 || warnings.has(stableKey)) {
return;
}
warnings.add(stableKey);
const isPlural = entries.length > 1;
const lastIndex = entries.length - 1;
const list = entries.reduce(
(acc, [name], index) => index === 0 ? name : acc + (index === lastIndex ? " and " : ", ") + name,
""
);
console.warn(
`${list} ${isPlural ? "values are" : "value is"} ignored when using react-native-edge-to-edge`
);
}
};
exports.controlEdgeToEdgeValues = controlEdgeToEdgeValues;
exports.isEdgeToEdge = isEdgeToEdge;
exports.isEdgeToEdgeFromLibrary = isEdgeToEdgeFromLibrary;
exports.isEdgeToEdgeFromProperty = isEdgeToEdgeFromProperty;
//# sourceMappingURL=index.android.js.map
//# sourceMappingURL=index.android.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/index.android.ts"],"names":["TurboModuleRegistry"],"mappings":";;;;;AAEA,IAAM,QAAA,uBAAe,GAAA,EAAY;AAE1B,IAAM,uBAAA,GAA0B,MACrCA,+BAAA,CAAoB,GAAA,CAAI,cAAc,CAAA,IAAK;AAEtC,IAAM,2BAA2B,MAAG;AAP3C,EAAA,IAAA,EAAA,EAAA,EAAA;AAQE,EAAA,OAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAAA,+BAAA,CAAoB,IAEjB,YAAY,CAAA,KAFf,IAAA,GAAA,MAAA,GAAA,EAAA,CAEkB,YAAA,KAFlB,4BAEmC,YAAA,MAAiB,IAAA;AAAA;AAE/C,IAAM,YAAA,GAAe,MAC1B,uBAAA,EAAwB,IAAK,wBAAA;AAExB,IAAM,uBAAA,GAA0B,CAAC,MAAA,KAAoC;AAC1E,EAAA,IAAI,OAAA,IAAW,cAAa,EAAG;AAC7B,IAAA,MAAM,OAAA,GAAU,MAAA,CAAO,OAAA,CAAQ,MAAM,CAAA,CAAE,MAAA;AAAA,MACrC,CAAC,GAAG,KAAK,CAAA,KAAM,OAAO,KAAA,KAAU;AAAA,KAClC;AAEA,IAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,IAAA,CAAK,GAAG,CAAA;AAElC,IAAA,IAAI,QAAQ,MAAA,GAAS,CAAA,IAAK,QAAA,CAAS,GAAA,CAAI,SAAS,CAAA,EAAG;AACjD,MAAA;AAAA,IACF;AAEA,IAAA,QAAA,CAAS,IAAI,SAAS,CAAA;AAEtB,IAAA,MAAM,QAAA,GAAW,QAAQ,MAAA,GAAS,CAAA;AAClC,IAAA,MAAM,SAAA,GAAY,QAAQ,MAAA,GAAS,CAAA;AAEnC,IAAA,MAAM,OAAO,OAAA,CAAQ,MAAA;AAAA,MACnB,CAAC,GAAA,EAAK,CAAC,IAAI,CAAA,EAAG,KAAA,KACZ,KAAA,KAAU,CAAA,GACN,IAAA,GACA,GAAA,IAAO,KAAA,KAAU,SAAA,GAAY,UAAU,IAAA,CAAA,GAAQ,IAAA;AAAA,MACrD;AAAA,KACF;AAEA,IAAA,OAAA,CAAQ,IAAA;AAAA,MACN,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,QAAA,GAAW,eAAe,UAAU,CAAA,6CAAA;AAAA,KACjD;AAAA,EACF;AACF","file":"index.android.js","sourcesContent":["import { TurboModuleRegistry } from \"react-native\";\n\nconst warnings = new Set<string>();\n\nexport const isEdgeToEdgeFromLibrary = () =>\n TurboModuleRegistry.get(\"RNEdgeToEdge\") != null;\n\nexport const isEdgeToEdgeFromProperty = () =>\n TurboModuleRegistry.get<{\n getConstants?: () => { isEdgeToEdge?: boolean };\n }>(\"DeviceInfo\")?.getConstants?.().isEdgeToEdge === true;\n\nexport const isEdgeToEdge = () =>\n isEdgeToEdgeFromLibrary() || isEdgeToEdgeFromProperty();\n\nexport const controlEdgeToEdgeValues = (values: Record<string, unknown>) => {\n if (__DEV__ && isEdgeToEdge()) {\n const entries = Object.entries(values).filter(\n ([, value]) => typeof value !== \"undefined\",\n );\n\n const stableKey = entries.join(\" \");\n\n if (entries.length < 1 || warnings.has(stableKey)) {\n return;\n }\n\n warnings.add(stableKey);\n\n const isPlural = entries.length > 1;\n const lastIndex = entries.length - 1;\n\n const list = entries.reduce(\n (acc, [name], index) =>\n index === 0\n ? name\n : acc + (index === lastIndex ? \" and \" : \", \") + name,\n \"\",\n );\n\n console.warn(\n `${list} ${isPlural ? \"values are\" : \"value is\"} ignored when using react-native-edge-to-edge`,\n );\n }\n};\n"]}

View File

@@ -0,0 +1,35 @@
import { TurboModuleRegistry } from 'react-native';
// src/index.android.ts
var warnings = /* @__PURE__ */ new Set();
var isEdgeToEdgeFromLibrary = () => TurboModuleRegistry.get("RNEdgeToEdge") != null;
var isEdgeToEdgeFromProperty = () => {
var _a, _b;
return ((_b = (_a = TurboModuleRegistry.get("DeviceInfo")) == null ? void 0 : _a.getConstants) == null ? void 0 : _b.call(_a).isEdgeToEdge) === true;
};
var isEdgeToEdge = () => isEdgeToEdgeFromLibrary() || isEdgeToEdgeFromProperty();
var controlEdgeToEdgeValues = (values) => {
if (__DEV__ && isEdgeToEdge()) {
const entries = Object.entries(values).filter(
([, value]) => typeof value !== "undefined"
);
const stableKey = entries.join(" ");
if (entries.length < 1 || warnings.has(stableKey)) {
return;
}
warnings.add(stableKey);
const isPlural = entries.length > 1;
const lastIndex = entries.length - 1;
const list = entries.reduce(
(acc, [name], index) => index === 0 ? name : acc + (index === lastIndex ? " and " : ", ") + name,
""
);
console.warn(
`${list} ${isPlural ? "values are" : "value is"} ignored when using react-native-edge-to-edge`
);
}
};
export { controlEdgeToEdgeValues, isEdgeToEdge, isEdgeToEdgeFromLibrary, isEdgeToEdgeFromProperty };
//# sourceMappingURL=index.android.mjs.map
//# sourceMappingURL=index.android.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/index.android.ts"],"names":[],"mappings":";;;AAEA,IAAM,QAAA,uBAAe,GAAA,EAAY;AAE1B,IAAM,uBAAA,GAA0B,MACrC,mBAAA,CAAoB,GAAA,CAAI,cAAc,CAAA,IAAK;AAEtC,IAAM,2BAA2B,MAAG;AAP3C,EAAA,IAAA,EAAA,EAAA,EAAA;AAQE,EAAA,OAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,mBAAA,CAAoB,IAEjB,YAAY,CAAA,KAFf,IAAA,GAAA,MAAA,GAAA,EAAA,CAEkB,YAAA,KAFlB,4BAEmC,YAAA,MAAiB,IAAA;AAAA;AAE/C,IAAM,YAAA,GAAe,MAC1B,uBAAA,EAAwB,IAAK,wBAAA;AAExB,IAAM,uBAAA,GAA0B,CAAC,MAAA,KAAoC;AAC1E,EAAA,IAAI,OAAA,IAAW,cAAa,EAAG;AAC7B,IAAA,MAAM,OAAA,GAAU,MAAA,CAAO,OAAA,CAAQ,MAAM,CAAA,CAAE,MAAA;AAAA,MACrC,CAAC,GAAG,KAAK,CAAA,KAAM,OAAO,KAAA,KAAU;AAAA,KAClC;AAEA,IAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,IAAA,CAAK,GAAG,CAAA;AAElC,IAAA,IAAI,QAAQ,MAAA,GAAS,CAAA,IAAK,QAAA,CAAS,GAAA,CAAI,SAAS,CAAA,EAAG;AACjD,MAAA;AAAA,IACF;AAEA,IAAA,QAAA,CAAS,IAAI,SAAS,CAAA;AAEtB,IAAA,MAAM,QAAA,GAAW,QAAQ,MAAA,GAAS,CAAA;AAClC,IAAA,MAAM,SAAA,GAAY,QAAQ,MAAA,GAAS,CAAA;AAEnC,IAAA,MAAM,OAAO,OAAA,CAAQ,MAAA;AAAA,MACnB,CAAC,GAAA,EAAK,CAAC,IAAI,CAAA,EAAG,KAAA,KACZ,KAAA,KAAU,CAAA,GACN,IAAA,GACA,GAAA,IAAO,KAAA,KAAU,SAAA,GAAY,UAAU,IAAA,CAAA,GAAQ,IAAA;AAAA,MACrD;AAAA,KACF;AAEA,IAAA,OAAA,CAAQ,IAAA;AAAA,MACN,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,QAAA,GAAW,eAAe,UAAU,CAAA,6CAAA;AAAA,KACjD;AAAA,EACF;AACF","file":"index.android.mjs","sourcesContent":["import { TurboModuleRegistry } from \"react-native\";\n\nconst warnings = new Set<string>();\n\nexport const isEdgeToEdgeFromLibrary = () =>\n TurboModuleRegistry.get(\"RNEdgeToEdge\") != null;\n\nexport const isEdgeToEdgeFromProperty = () =>\n TurboModuleRegistry.get<{\n getConstants?: () => { isEdgeToEdge?: boolean };\n }>(\"DeviceInfo\")?.getConstants?.().isEdgeToEdge === true;\n\nexport const isEdgeToEdge = () =>\n isEdgeToEdgeFromLibrary() || isEdgeToEdgeFromProperty();\n\nexport const controlEdgeToEdgeValues = (values: Record<string, unknown>) => {\n if (__DEV__ && isEdgeToEdge()) {\n const entries = Object.entries(values).filter(\n ([, value]) => typeof value !== \"undefined\",\n );\n\n const stableKey = entries.join(\" \");\n\n if (entries.length < 1 || warnings.has(stableKey)) {\n return;\n }\n\n warnings.add(stableKey);\n\n const isPlural = entries.length > 1;\n const lastIndex = entries.length - 1;\n\n const list = entries.reduce(\n (acc, [name], index) =>\n index === 0\n ? name\n : acc + (index === lastIndex ? \" and \" : \", \") + name,\n \"\",\n );\n\n console.warn(\n `${list} ${isPlural ? \"values are\" : \"value is\"} ignored when using react-native-edge-to-edge`,\n );\n }\n};\n"]}

View File

@@ -0,0 +1,20 @@
/**
* Check if edge-to-edge is enabled through `react-native-edge-to-edge` library.
* @returns A `boolean`, `true` on platforms other than Android.
*/
export declare const isEdgeToEdgeFromLibrary: () => boolean;
/**
* Check if edge-to-edge is enabled through `edgeToEdgeEnabled` Gradle property.
* @returns A `boolean`, `true` on platforms other than Android.
*/
export declare const isEdgeToEdgeFromProperty: () => boolean;
/**
* Check if edge-to-edge is enabled, either from the library or the Gradle property.
* @returns A `boolean`, `true` on platforms other than Android.
*/
export declare const isEdgeToEdge: () => boolean;
/**
* In __DEV__ mode, warn when given values are ignored due to edge-to-edge being enabled.
* @param values - A record of named values to check. Only defined values trigger a warning.
*/
export declare const controlEdgeToEdgeValues: (values: Record<string, unknown>) => void;

View File

@@ -0,0 +1,15 @@
'use strict';
// src/index.ts
var isEdgeToEdgeFromLibrary = () => true;
var isEdgeToEdgeFromProperty = () => true;
var isEdgeToEdge = () => true;
var controlEdgeToEdgeValues = (values) => {
};
exports.controlEdgeToEdgeValues = controlEdgeToEdgeValues;
exports.isEdgeToEdge = isEdgeToEdge;
exports.isEdgeToEdgeFromLibrary = isEdgeToEdgeFromLibrary;
exports.isEdgeToEdgeFromProperty = isEdgeToEdgeFromProperty;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAIO,IAAM,0BAA0B,MAAM;AAMtC,IAAM,2BAA2B,MAAM;AAMvC,IAAM,eAAe,MAAM;AAM3B,IAAM,uBAAA,GAA0B,CAAC,MAAA,KAAoC;AAAC","file":"index.js","sourcesContent":["/**\n * Check if edge-to-edge is enabled through `react-native-edge-to-edge` library.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdgeFromLibrary = () => true;\n\n/**\n * Check if edge-to-edge is enabled through `edgeToEdgeEnabled` Gradle property.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdgeFromProperty = () => true;\n\n/**\n * Check if edge-to-edge is enabled, either from the library or the Gradle property.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdge = () => true;\n\n/**\n * In __DEV__ mode, warn when given values are ignored due to edge-to-edge being enabled.\n * @param values - A record of named values to check. Only defined values trigger a warning.\n */\nexport const controlEdgeToEdgeValues = (values: Record<string, unknown>) => {};\n"]}

View File

@@ -0,0 +1,10 @@
// src/index.ts
var isEdgeToEdgeFromLibrary = () => true;
var isEdgeToEdgeFromProperty = () => true;
var isEdgeToEdge = () => true;
var controlEdgeToEdgeValues = (values) => {
};
export { controlEdgeToEdgeValues, isEdgeToEdge, isEdgeToEdgeFromLibrary, isEdgeToEdgeFromProperty };
//# sourceMappingURL=index.mjs.map
//# sourceMappingURL=index.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAIO,IAAM,0BAA0B,MAAM;AAMtC,IAAM,2BAA2B,MAAM;AAMvC,IAAM,eAAe,MAAM;AAM3B,IAAM,uBAAA,GAA0B,CAAC,MAAA,KAAoC;AAAC","file":"index.mjs","sourcesContent":["/**\n * Check if edge-to-edge is enabled through `react-native-edge-to-edge` library.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdgeFromLibrary = () => true;\n\n/**\n * Check if edge-to-edge is enabled through `edgeToEdgeEnabled` Gradle property.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdgeFromProperty = () => true;\n\n/**\n * Check if edge-to-edge is enabled, either from the library or the Gradle property.\n * @returns A `boolean`, `true` on platforms other than Android.\n */\nexport const isEdgeToEdge = () => true;\n\n/**\n * In __DEV__ mode, warn when given values are ignored due to edge-to-edge being enabled.\n * @param values - A record of named values to check. Only defined values trigger a warning.\n */\nexport const controlEdgeToEdgeValues = (values: Record<string, unknown>) => {};\n"]}

44
node_modules/react-native-is-edge-to-edge/package.json generated vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"name": "react-native-is-edge-to-edge",
"version": "1.3.1",
"license": "MIT",
"description": "Detect react-native-edge-to-edge package install",
"author": "Mathieu Acthernoene <zoontek@gmail.com>",
"homepage": "https://github.com/zoontek/react-native-edge-to-edge",
"source": "src/index",
"main": "dist/index",
"module": "dist/index",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/zoontek/react-native-edge-to-edge.git"
},
"keywords": [
"react",
"react-native",
"edge-to-edge",
"status-bar",
"navigation-bar",
"system-bar",
"system-bars"
],
"scripts": {
"clean": "rm -rf dist",
"test": "vitest run",
"prepack": "yarn clean && yarn test && tsup && tsc -p tsconfig.build.json --emitDeclarationOnly"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"devDependencies": {
"react": "19.2.3",
"react-native": "0.84.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
}
}