Question and answer is powered by AnsPress.io
I have tried to put a number value in a variable using the setState function.
this.setState({ user_type: type});
The variable value returns the string value whether I need an integer value. So I need to convert string to integer in React Native. How can I do it?