06-11-2018 16:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2018 16:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
06-11-2018 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2018 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Found it - had to remove the "this" from this.props...

06-11-2018 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2018 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Found it - had to remove the "this" from this.props...

06-15-2018 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-15-2018 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks, we'll get the example clarified

