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.
Best Answer06-11-2018 16:46
06-11-2018 16:46
Found it - had to remove the "this" from this.props...
Best Answer06-11-2018 16:46
06-11-2018 16:46
Found it - had to remove the "this" from this.props...
Best Answer06-15-2018 14:17
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
06-15-2018 14:17
Thanks, we'll get the example clarified
Best Answer