Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Latropos committed Oct 16, 2024
1 parent 4098856 commit f03ab14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-native-reanimated/src/UpdateProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ if (shouldBeUseWeb()) {
updateProps = (viewDescriptors, updates) => {
'worklet';
processColorsInProps(updates);
if ('transformOrigin' in updates) {
if (!Array.isArray(updates.transformOrigin)) {
throw new ReanimatedError('Please use transformOrigin in array form');
}
}
global.UpdatePropsManager.update(viewDescriptors, updates);
};
}
Expand Down

0 comments on commit f03ab14

Please sign in to comment.