@times-components/gestures

4.2.17 • Public • Published

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.

Package Sidebar

Install

npm i @times-components/gestures

Weekly Downloads

0

Version

4.2.17

License

BSD-3-Clause

Unpacked Size

96 kB

Total Files

8

Last publish

Collaborators

  • marcincuber
  • news-tools
  • newsuk