I'm trying to create a React App that runs on a Tizen OS-based device. And I need to use the B2B APIs and Web APIs for Printing and getting device information.
All the guides provided have used Web App mode in Tizen Studio but no mention of how to use the libraries in React.
index.html
<script type='text/javascript' src='$B2BAPIS/b2bapis/b2bapis.js'></script>
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
config.xml:
<tizen:privilege name="http://developer.samsung.com/privilege/serialport"/>
<tizen:privilege name="http://developer.samsung.com/privilege/productinfo"/>
Guides have mentioned adding the above in the index.html and config.xml files. But I don't think we can use the library in the React app with the above approach.
How do I get access to these two API Javascript Libraries for React?