How to add custom font in react native android : <p>I am learning <code>react-native</code>, trying to create some demo apps just for learning. I want to set <code>fontFamily</code> to roboto thin of my toolbar title. </p>

<p>I have added roboto thin ttf in <code>assets/fonts</code> folder of my android project, however it seems that it is creating issues while running app. I am getting this issue while running </p>

<blockquote>
  <p>react-native start</p>
</blockquote>

<pre><code>ERROR  EPERM: operation not permitted, lstat 'E:\Myntra\android\app\build\gener
ated\source\r\debug\android\support\v7\appcompat'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"E:\\Myntra\\android\\app
\\build\\generated\\source\\r\\debug\\android\\support\\v7\\appcompat"}
Error: EPERM: operation not permitted, lstat 'E:\Myntra\android\app\build\genera
ted\source\r\debug\android\support\v7\appcompat'
    at Error (native)
</code></pre>

<p>When I am removing the font then it is working fine.
I am unable to fix this issue, can anyone help me what can be the reason for this.</p>

<p>Thanks in advance.</p>
