{"id":26756958,"url":"https://github.com/KorSoftwareSolutions/react-native-joystick","last_synced_at":"2025-03-28T15:22:03.347Z","repository":{"id":60887743,"uuid":"428412762","full_name":"KorSoftwareSolutions/react-native-joystick","owner":"KorSoftwareSolutions","description":"React Native Joystick Component.","archived":false,"fork":false,"pushed_at":"2024-05-19T03:30:40.000Z","size":771,"stargazers_count":22,"open_issues_count":1,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T15:21:55.533Z","etag":null,"topics":["expo","games","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KorSoftwareSolutions.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-15T20:31:32.000Z","updated_at":"2025-03-05T02:01:51.000Z","dependencies_parsed_at":"2023-12-15T03:49:31.844Z","dependency_job_id":"092122ea-eed3-4070-b27e-cc2028274212","html_url":"https://github.com/KorSoftwareSolutions/react-native-joystick","commit_stats":{"total_commits":29,"total_committers":4,"mean_commits":7.25,"dds":"0.48275862068965514","last_synced_commit":"0eb9fc139fc28520a7b9cbf72536391f5135b6de"},"previous_names":["ionkorol/korol-joystick","korsoftwaresolutions/react-native-joystick","ionkorol/react-native-joystick"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorSoftwareSolutions%2Freact-native-joystick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorSoftwareSolutions%2Freact-native-joystick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorSoftwareSolutions%2Freact-native-joystick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorSoftwareSolutions%2Freact-native-joystick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KorSoftwareSolutions","download_url":"https://codeload.github.com/KorSoftwareSolutions/react-native-joystick/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049802,"owners_count":20715536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expo","games","react","react-native"],"created_at":"2025-03-28T15:22:01.732Z","updated_at":"2025-03-28T15:22:03.342Z","avatar_url":"https://github.com/KorSoftwareSolutions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Joystick\n\n[![NPM](https://nodei.co/npm/@korsolutions/react-native-joystick.png)](https://nodei.co/npm/@korsolutions/react-native-joystick)\n\n[![runs with Expo Go](https://img.shields.io/badge/Runs%20with%20Expo%20Go-4630EB.svg?style=flat-square\u0026logo=EXPO\u0026labelColor=f3f3f3\u0026logoColor=000)](https://expo.io/client)\n\n## TOC\n\n- [Installation](#installation)\n- [Preview](#preview)\n- [Usage](#usage)\n- [Props](#props)\n- [Types](#types)\n\n## Installation\n\n**NPM**\n\n```shell\nnpm install @korsolutions/react-native-joystick react-native-gesture-handler --save\n```\n\n**YARN**\n\n```shell\nyarn add @korsolutions/react-native-joystick react-native-gesture-handler\n```\n\nAdd GestureHandlerRootView at the root level of your app.\n```js\nimport { GestureHandlerRootView } from \"react-native-gesture-handler\";\n\n\u003cGestureHandlerRootView\u003e\n  \u003cYourApp /\u003e\n\u003c/GestureHandlerRootView\u003e\n```\n\n## Preview\n\n![React Native Axis Pad: Screen Preview](./assets/preview.gif)\n\n## Usage\n\n```js\nimport { ReactNativeJoystick } from \"@korsolutions/react-native-joystick\";\n```\n\n```js\n\u003cReactNativeJoystick color=\"#06b6d4\" radius={75} onMove={(data) =\u003e console.log(data)} /\u003e\n```\n\n## Props\n\n### radius\n\nSet the size radius of the container circle\nThe inside joystick radius is 1/3 of this size\nType: **Number**\n\n### color\n\nSet the color scheme of the joystick\nThe color of the container and the joystick is set based on this color with a set opacity.\n\ntype: **HEX Color Code**\n\n### onMove, onStart, onStop\n\nA callback function with an argument of type [MoveJoystickEvent](#MoveJoystickEvent).\n\ntype: **Function**\n\n## Types\n\n### MoveJoystickEvent\n\nEvent returned by the onMove, onStart and onStop callbacks.\n\n```js\n{\n  type: \"move\" | \"stop\" | \"start\";\n  position: {\n    x: number;\n    y: number;\n  }\n  force: number;\n  angle: {\n    radian: number;\n    degree: number;\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKorSoftwareSolutions%2Freact-native-joystick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKorSoftwareSolutions%2Freact-native-joystick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKorSoftwareSolutions%2Freact-native-joystick/lists"}