title: React Native: How to add script tag in the component
body: <p>I am trying to add  tag inside the component for the React Native app. Below is my code and it doesn't seem to work.
  Could anyone please tell me how to solve this issue?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, {Component} from 'react';
  import PropTypes from 'prop-types';
  import Dimensions from 'Dimensions';
  import {StyleSheet, View, TextInput, Image, Text} from 'react-native';
  
  export default class Chatbot extends Component {
    render() {
      return (
        &lt;View&gt;
          &lt;Text&gt;Testing&lt;/Text&gt;
          
    &lt;script type="text/javascript"&gt;
        window.__be = window.__be || {};
        window.__be.id = "5b3a47b4b30a36000769d821";
        (function() {
            var be = document.createElement('script'); be.type = 'text/javascript'; be.async = true;
            be.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.botengine.ai/widget/plugin.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(be, s);
        })();
    &lt;/script&gt;
  
        &lt;/View&gt;
      );
    }
  }</code></pre>
  </div>
  </div>
  </p>