Skip to content

Commit

Permalink
Clean up dev checks
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiPl01 committed Aug 12, 2024
1 parent 0631b34 commit 0c20e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native-reanimated/src/mutables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ function shouldWarnAboutAccessDuringRender() {
}

function checkInvalidReadDuringRender() {
if (__DEV__ && shouldWarnAboutAccessDuringRender()) {
if (shouldWarnAboutAccessDuringRender()) {
console.warn(
'[Reanimated] Reading from `value` during component render. Please ensure that you do not access the `value` property while React is rendering a component.'
);
}
}

function checkInvalidWriteDuringRender() {
if (__DEV__ && shouldWarnAboutAccessDuringRender()) {
if (shouldWarnAboutAccessDuringRender()) {
console.warn(
'[Reanimated] Writing to `value` during component render. Please ensure that you do not access the `value` property while React is rendering a component.'
);
Expand Down

0 comments on commit 0c20e83

Please sign in to comment.