I tried to write a settings page for my shoutem extension. I followed the following tutorial and could get a working example using Shortcut Settings
.
Extension Settings
using the setttingsPage
tag in the extension.json
file? Unfortunately I could not find any tutorial for that.
const { shortcut } = this.props;
const { greeting } = shortcut.settings;
But how do I do it inside app.js for exampleUse settingsPages
in the root of extensions.json
. The example you can find in our Shopify extensions and here's the reference for extension.json.
To get extension settings, use getExtensionSettings
selector. The example you can find in the app/app.js of our Shopify extension.