12-07-2017 13:44
12-07-2017 13:44
Hello,
I have a 2 for one noob question. I have been trying to get image pictures next to their options in the settings app.
I currently have:
renderItem={ (option) => <TextImageRow label={option.name} sublabel="Image" icon={landing} /> }
where landing is an import item. This works for any of the individual images I have imported. However, when I try to use onSelection to set a variable for the icon, it crashes. Is there a way to make this work using the Select function as found in the settings API? Is there a better description of how onSelection works than what is in the API? Or, am I going to have to make my own selection tool?
Thanks!