You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Turns out that rotation on macOS works in opposite direction comparing to other platforms. This PR fixes that behavior.
## Test plan
<details>
<summary>Tested on the following code (check `rotation` value in event)</summary>
```tsx
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
export default function EmptyExample() {
const g = Gesture.Rotation().onChange(console.log);
return (
<View style={styles.container}>
<GestureDetector gesture={g}>
<View style={{ width: 300, height: 300, backgroundColor: 'red' }} />
</GestureDetector>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
});
```
</details>
0 commit comments