Skip to content

Commit

Permalink
Check is __DEV__ is set on web
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Oct 29, 2024
1 parent 8634617 commit 06e4a86
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected]:
version "0.75.4"
Expand Down

0 comments on commit 06e4a86

Please sign in to comment.