How to add custom Icons to NativeBase

后端 未结 2 1340
长发绾君心
长发绾君心 2021-01-26 00:30

I have the .ttf and .svg files for customized icons that I designed. But I would like to import them into my NativeBase project, making them available

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-26 00:45

    We do something like below to show .ttf and .svg icons in React

      import ttfFile from “./fonts/fileName.ttf”;
      import svgFile from “./svg/fileName.svg”
    
      
      
    

    Or

     
      
    

    Excuse me for wrong double quotes typo because I am answering from my mobile

提交回复
热议问题