@times-components/gestures
v4.2.17
Published
Wrapper to respond to pinch to zoom and rotate events
Downloads
682
Readme
Gestures
Gestures is a native wrapper that allows touch gestures on mobile of its child components. Gestures supports two finger zoom (centered only at the moment) and rotate, in either direction, and also allows components to return to their original position when fingers are removed.
Contributing
Please read CONTRIBUTING.md before contributing to this package
Running the code
Please see our main README.md to get the project running locally
Development
The code can be formatted and linted in accordance with the agreed standards.
yarn fmt
yarn lint
Testing
This package uses yarn (latest) to run unit tests on each platform with jest.
yarn test:all
yarn test:android
yarn test:ios
yarn test:web
Gestures can be viewed locally using yarn storybook-native
in the "Helpers"
section.
Future
The two finger zoom gesture only focuses around the center of a component currently. A feature to enable zooming to other areas of a component is planned.