06-11-2018 16:44
06-11-2018 16:44
I am using the example from the Settings API page for the toggle that disables/enables the textInput.
<TextInput
label="Example"
title="Text Input"
settingsKey="textInput"
disabled={!(this.props.settings.toggleTextInput === "true")}
/>
<Toggle
label="Enable Text Input"
settingsKey="toggleTextInput"
However when I run the code in the simulator, I get a blank settings page. I have narrowed it down to the "disabled" line as the culprit. Did something change?
Answered! Go to the Best Answer.
06-11-2018 16:46
06-11-2018 16:46
Found it - had to remove the "this" from this.props...
06-11-2018 16:46
06-11-2018 16:46
Found it - had to remove the "this" from this.props...
06-15-2018 14:17
06-15-2018 14:17
Thanks, we'll get the example clarified