Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 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>
- Loading branch information