Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

javascript - Can we add SVG icon in Picker.Item?

I am trying to add SVG icons in <Picker.Item /> using react-native-picker/picker library but it doesn't show.

Here I am putting a piece of code:

(language, index) => {
  return(
    <Picker.Item
      label={ <EnglishFlag height={25} width={25} /> + language.name}
      value={language.value}
      key={index}
     />
  )
});

I want to mention that I want to use only svg icon not emoji. Is there any way to do in this form?

Thanks in advance


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...