Failed building JavaScript bundle. Unable to use custom fonts.

I am totally new to react native and am trying to us a google form in my app using following code:

[fontLoaded] = Font.useFonts({
    'title-font': require('./assets/Fonts/Lobster/Lobster-Regular.ttf')
  })
  
  if(fontLoaded){
    return (
        <Home/>      
    );
  } 
  else{
    return(
      <AppLoading/>
    )
  }

however, the following error is occurring when I try to run my app.

SHA-1 for file appDirectory/assets/Fonts/Lobster/Lobster-Regular.ttf (appDirectory/assets/Fonts/Lobster/Lobster-Regular.ttf) is not computed 

I tried finding solutions on stackoverflow, but they recommend updating react-native-cli whereas i am using expo-cli
What should I do?