简体   繁体   中英

How to port Javascript library to React Native?

Could anyone give some general guidance or point to an example of how to port a JavaScript library into a React Native component?

Specifically, I am interested in building a React Native component wrapper for AR.js , but I have no idea how to go about converting their system (which uses HTML <a-scene> elements) into something I could use as React Native markup.

You cannot port AR.js into React-native without writing a binding
Learn more here Bridging in React-native

But still there is a dummy option: use WebView and feed with html files ( test it by opening AR.js demo on Safari of iOS first )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM