Some people use higher values for char codes in custom iconsets, for example, we have a icon font using block from \uf2001 to \uff223. But String.fromCharCode() does not work with them, change the method to String.fromCodePoint() can solve this problem.
Some people use higher values for char codes in custom iconsets, for example, we have a icon font using block from
\uf2001
to\uff223
. ButString.fromCharCode()
does not work with them, change the method toString.fromCodePoint()
can solve this problem.https://github.com/oblador/react-native-vector-icons/blob/14be3c6f0570d607b57cc51d6bdb8c784f1cecc3/lib/create-icon-set.js#L63-L65
Convert all the decimal codes to chars before call
createIconSet()
works well, too.