Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Settings index.jsx Section Descriptions question

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 Answer
0 Votes
3 REPLIES 3

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 Answer
0 Votes

Unfortunately that doesn't work - any other suggestions?

Best Answer
0 Votes

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
0 Votes