diff --git a/example/yarn.lock b/example/yarn.lock index 882a0d01..810b0def 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -5279,10 +5279,10 @@ react-native-edge-to-edge@^0.1.2: resolved "https://registry.yarnpkg.com/react-native-edge-to-edge/-/react-native-edge-to-edge-0.1.2.tgz#c23f9cbf2d78c5c020fff7beb169557fa87122b7" integrity sha512-j5f+ipP7FEqHDE8JHW11tv3iska0c7izs1V4/YidDsRWTv5VcA+GUBMSyduhpeUe39joQOd5hLf9/wwZVNiX2A== -react-native-is-edge-to-edge@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.5.tgz#9dff7a1fad17ceb39ff48192c9ddaff5c72a637a" - integrity sha512-zt/0wLKBYTdoQdaZEvN9Ghi8Kz3Fo3LaWMzWZyJl7aLhvCNPebyi0DW449+PzC5xpIQdfcmumwkaB9VpymvViQ== +react-native-is-edge-to-edge@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.6.tgz#69ec13f70d76e9245e275eed4140d0873a78f902" + integrity sha512-1pHnFTlBahins6UAajXUqeCOHew9l9C2C8tErnpGC3IyLJzvxD+TpYAixnCbrVS52f7+NvMttbiSI290XfwN0w== react-native-web-image-loader@^0.1.1: version "0.1.1" diff --git a/package.json b/package.json index c82af639..5f3d4887 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-bootsplash", - "version": "6.2.5", + "version": "6.2.6", "license": "MIT", "description": "Display a bootsplash on your app starts. Hide it when you want.", "author": "Mathieu Acthernoene ", @@ -71,7 +71,7 @@ "node-html-parser": "^6.1.13", "picocolors": "^1.1.0", "prettier": "^3.3.3", - "react-native-is-edge-to-edge": "^1.1.5", + "react-native-is-edge-to-edge": "^1.1.6", "sharp": "^0.32.6", "ts-dedent": "^2.2.0", "xml-formatter": "^3.6.3" diff --git a/src/index.ts b/src/index.ts index 3fea96c8..4bc14fc4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -101,7 +101,8 @@ export function useHideAnimation(config: UseHideAnimationConfig) { navigationBarTranslucent, } = config; - if (__DEV__) { + // __DEV__ global is missing in react-native-web + if (typeof __DEV__ !== "undefined" && __DEV__) { controlEdgeToEdgeValues({ statusBarTranslucent, navigationBarTranslucent }); } diff --git a/yarn.lock b/yarn.lock index 7314e149..0a90f85a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4576,10 +4576,10 @@ react-native-builder-bob@^0.30.2: which "^2.0.2" yargs "^17.5.1" -react-native-is-edge-to-edge@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.5.tgz#9dff7a1fad17ceb39ff48192c9ddaff5c72a637a" - integrity sha512-zt/0wLKBYTdoQdaZEvN9Ghi8Kz3Fo3LaWMzWZyJl7aLhvCNPebyi0DW449+PzC5xpIQdfcmumwkaB9VpymvViQ== +react-native-is-edge-to-edge@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/react-native-is-edge-to-edge/-/react-native-is-edge-to-edge-1.1.6.tgz#69ec13f70d76e9245e275eed4140d0873a78f902" + integrity sha512-1pHnFTlBahins6UAajXUqeCOHew9l9C2C8tErnpGC3IyLJzvxD+TpYAixnCbrVS52f7+NvMttbiSI290XfwN0w== react-native@0.75.4: version "0.75.4"