0.1.9 • Published 1 year ago

react-native-virtual-joystick v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM

react-native-virtual-joystick

simple React Native virtual joystick

Installation

npm install react-native-virtual-joystick

Usage

import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { JoyStick } from 'react-native-virtual-joystick';

// ...
<GestureHandlerRootView
  style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}
>
  <JoyStick
    wrapperColor="#808080"
    nippleColor="#D3D3D3"
    wrapperRadius={60}
    nippleRadius={20}
    borderWidth={5}
    onMove={(data) => {
      console.log(data);
    }}
    onTouchDown={(data) => {
      console.log(data);
    }}
    onTouchUp={(data) => {
      console.log(data);
    }}
  />
</GestureHandlerRootView>;

License

MIT


Made with create-react-native-library

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago