title: How to import javascript library to React Native project?
body: <p>I am trying to implement JavaScript library to my mobile app that I am creating with React Native. This app should have flashcards with Chinese characters and its stroke order, but I dont know how to add this library to the react nor how to use it afterwards.</p>
  
  <p>Library:
  <a href="https://github.com/chanind/hanzi-writer" rel="nofollow noreferrer">https://github.com/chanind/hanzi-writer</a></p>
  
  <p>I already try it in the browser, everything works as described in docs, but I cant find a way to implement it in my mobile app.</p>
  
  <p>In html I can do something like this to have a flashcard with one character</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;script src="https://cdn.jsdelivr.net/npm/hanzi-writer@2.0.2/dist/hanzi-writer.min.js"&gt; &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="character-target-div"&gt;&lt;/div&gt;
          &lt;script type="application/javascript"&gt;
                  var writer = HanziWriter.create('character-target-div', '我', {
                          width: 100,
                          height: 100,
                          padding: 5
                  });
                  writer.quiz();
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  
  </code></pre>