Code Monkey home page Code Monkey logo

react-native-axis-pad's People

Contributors

98oktay avatar lucasgaravaglia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-axis-pad's Issues

onValue not getting called, handler off center, no dual stick support

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.

Add to NPM

Hello

This module is incompatible with Expo.
Could you onboard it on npm so that we can use the method : npm install @types/react-native-axis-pad --save

Thanks !

Capture d’écran 2023-01-02 161022

Issue with React Navigation

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

Incompatible with Expo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.