Skip to content

Commit 06e4a86

Browse files
committed
Check is __DEV__ is set on web
1 parent 8634617 commit 06e4a86

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

example/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -5279,10 +5279,10 @@ react-native-edge-to-edge@^0.1.2:
52795279
resolved "https://registry.yarnpkg.com/react-native-edge-to-edge/-/react-native-edge-to-edge-0.1.2.tgz#c23f9cbf2d78c5c020fff7beb169557fa87122b7"
52805280
integrity sha512-j5f+ipP7FEqHDE8JHW11tv3iska0c7izs1V4/YidDsRWTv5VcA+GUBMSyduhpeUe39joQOd5hLf9/wwZVNiX2A==
52815281

5282-
react-native-is-edge-to-edge@^1.1.5:
5283-
version "1.1.5"
5284-
resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.5.tgz#9dff7a1fad17ceb39ff48192c9ddaff5c72a637a"
5285-
integrity sha512-zt/0wLKBYTdoQdaZEvN9Ghi8Kz3Fo3LaWMzWZyJl7aLhvCNPebyi0DW449+PzC5xpIQdfcmumwkaB9VpymvViQ==
5282+
react-native-is-edge-to-edge@^1.1.6:
5283+
version "1.1.6"
5284+
resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.6.tgz#69ec13f70d76e9245e275eed4140d0873a78f902"
5285+
integrity sha512-1pHnFTlBahins6UAajXUqeCOHew9l9C2C8tErnpGC3IyLJzvxD+TpYAixnCbrVS52f7+NvMttbiSI290XfwN0w==
52865286

52875287
react-native-web-image-loader@^0.1.1:
52885288
version "0.1.1"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bootsplash",
3-
"version": "6.2.5",
3+
"version": "6.2.6",
44
"license": "MIT",
55
"description": "Display a bootsplash on your app starts. Hide it when you want.",
66
"author": "Mathieu Acthernoene <[email protected]>",
@@ -71,7 +71,7 @@
7171
"node-html-parser": "^6.1.13",
7272
"picocolors": "^1.1.0",
7373
"prettier": "^3.3.3",
74-
"react-native-is-edge-to-edge": "^1.1.5",
74+
"react-native-is-edge-to-edge": "^1.1.6",
7575
"sharp": "^0.32.6",
7676
"ts-dedent": "^2.2.0",
7777
"xml-formatter": "^3.6.3"

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export function useHideAnimation(config: UseHideAnimationConfig) {
101101
navigationBarTranslucent,
102102
} = config;
103103

104-
if (__DEV__) {
104+
// __DEV__ global is missing in react-native-web
105+
if (typeof __DEV__ !== "undefined" && __DEV__) {
105106
controlEdgeToEdgeValues({ statusBarTranslucent, navigationBarTranslucent });
106107
}
107108

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -4576,10 +4576,10 @@ react-native-builder-bob@^0.30.2:
45764576
which "^2.0.2"
45774577
yargs "^17.5.1"
45784578

4579-
react-native-is-edge-to-edge@^1.1.5:
4580-
version "1.1.5"
4581-
resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.5.tgz#9dff7a1fad17ceb39ff48192c9ddaff5c72a637a"
4582-
integrity sha512-zt/0wLKBYTdoQdaZEvN9Ghi8Kz3Fo3LaWMzWZyJl7aLhvCNPebyi0DW449+PzC5xpIQdfcmumwkaB9VpymvViQ==
4579+
react-native-is-edge-to-edge@^1.1.6:
4580+
version "1.1.6"
4581+
resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.6.tgz#69ec13f70d76e9245e275eed4140d0873a78f902"
4582+
integrity sha512-1pHnFTlBahins6UAajXUqeCOHew9l9C2C8tErnpGC3IyLJzvxD+TpYAixnCbrVS52f7+NvMttbiSI290XfwN0w==
45834583

45844584
45854585
version "0.75.4"

0 commit comments

Comments
 (0)