Check out example codes for "how to save toggle values unity". It will help you in understanding the concepts better.
Code Example 1
public Toggle Toggle;
private void Start() {
if ((PlayerPrefs.GetInt("ToggleBool") == 1)) {
Toggle.isOn = true
}
else {
Toggle.isOn = false;
}
}
private void Update() {
if (Toggle.isOn == true) {
PlayerPrefs.SetInt("ToggleBool", 1);
}
else {
PlayerPrefs.SetInt("ToggleBool", 0);
}
Learn ReactJs, React Native from akashmittal.com