Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 813 Bytes
import MaterialIcons from 'react-native-vector-icons/dist/MaterialIcons'
import Octicons from 'react-native-vector-icons/dist/Octicons'
import MaterialIconFont from 'react-native-vector-icons/Fonts/MaterialIcons.ttf'
import OcticonsFont from 'react-native-vector-icons/Fonts/Octicons.ttf'
export * from './index.shared'
export { Octicons, MaterialIcons }
const iconStyles = [
`@font-face { src:url(${MaterialIconFont});font-family: MaterialIcons; }`,
`@font-face { src:url(${OcticonsFont});font-family: Octicons; }`,
].join('\n')
const style = document.createElement('style')
style.type = 'text/css'
if ((style as any).styleSheet) {
;(style as any).styleSheet.cssText = iconStyles
} else {
style.appendChild(document.createTextNode(iconStyles))
}
if (document.head) document.head.appendChild(style)
You can’t perform that action at this time.