Check out example codes for "player prefs convert int to bool". It will help you in understanding the concepts better.

Code Example 1

PlayerPrefs.GetInt("YourPrefName") == 1 //Returns true false depending on value

Learn ReactJs, React Native from akashmittal.com