Skip to content

Commit

Permalink
feat: support enabling web via a flag in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jul 4, 2024
1 parent 2c63632 commit 558f61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reanimated2/PlatformChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function isWeb(): boolean {
}

export function shouldBeUseWeb() {
return isJest() || isChromeDebugger() || isWeb();
return isJest() || isChromeDebugger() || isWeb() || (global.__DEV__ && process.env.REANIMATED_WEB === 'true');
}

export function nativeShouldBeMock() {
Expand Down

0 comments on commit 558f61f

Please sign in to comment.