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

beginner :toggle help...

Hi, i m very unfamiliar with fitbit SDK, (and my skills in programming are poor)

i m trying to make the third toggle example of sdk settings API page work  :

it says : 

<Toggle
  settingsKey="toggle"
  label="Toggle Switch"
/>
{ JSON.parse(settings.toggle || 'false') && <Toggle settingsKey="hiddenToggle" /> }

i m assuming the code should unhide a secret toggle switch in my settings. 

where is the {JSON.parse...} part supposed to go? in in settings/*.jsx or in app.js? settings is the name for the function mySettings of the fitBIt's setting empty project wright? 

could someone please help me with this.

sorry for asking such question but FitBit SDK is very poor in documentation/tutorial....

By advance thanks!!!

 

Best Answer
0 Votes
0 REPLIES 0