98oktay / react-native-axis-pad Goto Github PK
View Code? Open in Web Editor NEWA virtual joystick for touch capable mobile devices.
A virtual joystick for touch capable mobile devices.
So I've tried out the library with the following code and it would seem that whenever I grab the stick the central circle appears randomly off center, usually in the very bottom right corner for some reason.
I would've debugged that further but alas I can't since there aren't any console logs from the onValue callback. Thus making the entire thing completely unusable.
import React, {Component} from 'react';
import {ImageBackground, Text, View, Button, TouchableOpacity, Platform, StyleSheet} from 'react-native';
import AxisPad from 'react-native-axis-pad';
export default class Stick extends Component {
render(){
return(
<AxisPad
resetOnRelease={true}
autoCenter={true}
size={150}
handlerSize={60}
onValue={({ x, y }) => {
console.log(x, y);
}}>
</AxisPad>
)
}
}
Now realistically one would only ever practically use two of these things at a time which really isn't possible with React's great single touch capability. Yaay.
AxisPadStyle can't find error
The most recent react navigation in react-native using expo causing the entire project to crash to the point I can not get logs to help determine what the problem. With out react navigation works fine
If you drag the joystick on an iPhone, it will report an error, but if you drag the joystick on an Android, it won't report an error. Why is that?### @98oktay
Simply installing and importing package will break Expo metro bundler. Considering the popularity of Expo you might want to investigate why there's a conflict
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.