Friday, December 14, 2018

React Native Custom Fonts

React Native Custom  Fonts


Google Fonts

https://fonts.google.com/?selection.family=Audiowide

and download and save it assets Folder, like this

This is my Side






go to package.json
add more thing





and the run the command
react-native link

Final Code
App.js

import React, { Component } from 'react'
import { View, Text } from 'react-native'

export default class App extends Component{
  render(){
    return(
      <View>
        <Text style={{fontFamily:'Audiowide-Regular', fontSize:35}}> Hello</Text>
      </View>
    )
  }
}




















No comments:

Post a Comment