Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In TypeScript panResponder is not defined (Line 13) #15

Closed
eaglejs opened this issue Oct 4, 2020 · 2 comments
Closed

In TypeScript panResponder is not defined (Line 13) #15

eaglejs opened this issue Oct 4, 2020 · 2 comments

Comments

@eaglejs
Copy link

eaglejs commented Oct 4, 2020

panResponder is not defined at all for the plugin. One has to define it as a property of the class.

export default class CircleSlider extends Component {
	panResponder;
	constructor(props) {
		super(props);

		this.state = {
			angle: this.props.value,
		};

		this.panResponder = PanResponder.create({
...
@raymondchooi
Copy link
Owner

Thanks for catching! I've converted the whole file to typescript, could you let me know if that works for you?

@raymondchooi
Copy link
Owner

Closing as just checked on updated version and do not see error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants