Skip to content

Tag: reactjs

How to add custom Icons to NativeBase

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 for use in NB’s <Icon /> component. How can I achieve this? Answer React Native Custom Icon Font for NativeBase Adopted from: https://medium.com/@k…

How to deal with a ref within a loop?

Below is my parent component with multiple inputs from a loop. How can I choose one input to focus? Do I have to create a dynamic ref in this case? Answer You can use callback refs to generate and store the dynamic ref of each input in an array. Now you can refer to them using the index of the