Skip to content

Instantly share code, notes, and snippets.

@eaccmk
Last active September 12, 2021 10:20
Show Gist options
  • Save eaccmk/dd7572998e1e31e98736541f6718f3f9 to your computer and use it in GitHub Desktop.
Save eaccmk/dd7572998e1e31e98736541f6718f3f9 to your computer and use it in GitHub Desktop.
Fitbit app companion (mobile) setting to text box with selection option
// author : https://github.com/eaccmk
// created : sep-2021
const NEW_EMOJI_URL = "http://bit.ly/emojiHelp";
function mySettings(props) {
return (
<Page>
<Section>
<Text align="center">
Thank you for using <Text bold>this app</Text>
</Text>
</Section>
<Section>
<TextInput
label={<Text bold>Tap to enter text</Text>}
placeholder="less is more.."
settingsKey="quoteText"
/>
<Text align="right">
More help <Link source={NEW_EMOJI_URL}>here</Link>
</Text>
</Section>
</Page>
);
}
registerSettingsPage(mySettings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment