10-26-2020 06:46
10-26-2020 06:46
Is there a way to force a line break in the Section Description on a Settings page? I tried unicode and \n but nothing seems to work.
Best Answer11-16-2020 05:15
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.
11-16-2020 05:15
Try this
<Section
description={<Text>{`Hi~
this is a test message.
`}</Text>}
title={<Text bold align="center">Demo Settings</Text>}>
<Text>
This is a very basic demo settings page to show off some of the current
capabilities of the Companion Settings library.
</Text>
</Section>
Best Answer02-12-2022 06:00
02-12-2022 06:00
Unfortunately that doesn't work - any other suggestions?
Best Answer02-19-2022 07:28
02-19-2022 07:28
React escapes most things automatically. I've tried a lot of workarounds and none of them showed any possibilities. Until/unless FitBit extends the text class in some way, it's probably not going to happen.
Best Answer