Skip to content

Commit 67370fc

Browse files
committed
removed coments from example|
1 parent 92e1e2d commit 67370fc

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

packages/docs-gesture-handler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
"@mui/material": "^7.1.0",
3535
"@swmansion/t-rex-ui": "1.3.1",
3636
"@vercel/og": "^0.6.2",
37-
"copy-text-to-clipboard": "3.2.2",
3837
"babel-polyfill": "^6.26.0",
3938
"babel-preset-expo": "^9.2.2",
4039
"babel-preset-react-native": "^4.0.1",
4140
"clsx": "^2.1.0",
41+
"copy-text-to-clipboard": "3.2.2",
42+
"eslint-plugin-simple-import-sort": "^13.0.0",
4243
"prism-react-renderer": "^2.1.0",
4344
"raf": "^3.4.1",
4445
"raw-loader": "^4.0.2",

packages/docs-gesture-handler/static/examples/RotationGestureBasicSrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { StyleSheet } from 'react-native';
33
import {
44
GestureDetector,
55
GestureHandlerRootView,
6-
useRotationGesture, // <-- RNGH v3 API Hook
6+
useRotationGesture,
77
} from 'react-native-gesture-handler';
88
import Animated, {
99
useSharedValue,
@@ -14,9 +14,7 @@ export default function App() {
1414
const angle = useSharedValue(0);
1515
const startAngle = useSharedValue(0);
1616

17-
// RNGH v3 Configuration Object
1817
const rotation = useRotationGesture({
19-
// Note: onStart has been renamed to onActivate in v3
2018
onActivate: () => {
2119
startAngle.value = angle.value;
2220
},
@@ -60,4 +58,4 @@ const styles = StyleSheet.create({
6058
top: '50%',
6159
pointerEvents: 'none',
6260
},
63-
});
61+
});

packages/docs-gesture-handler/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6312,6 +6312,11 @@ eslint-plugin-mdx@^2.2.0:
63126312
unified "^10.1.2"
63136313
vfile "^5.3.7"
63146314

6315+
eslint-plugin-simple-import-sort@^13.0.0:
6316+
version "13.0.0"
6317+
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-13.0.0.tgz#93936354367d8bb42c1b9b4c13c92eb29fffd2a5"
6318+
integrity sha512-McAc+/Nlvcg4byY/CABGH8kqnefWBj8s3JA2okEtz8ixbECQgU46p0HkTUKa4YS7wvgGceimlc34p1nXqbWqtA==
6319+
63156320
eslint-scope@5.1.1:
63166321
version "5.1.1"
63176322
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"

0 commit comments

Comments
 (0)