ReactJS与Cordova [英] Reactjs with cordova

查看:101
本文介绍了ReactJS与Cordova的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我设置配置以使用reactjs和Cordova来构建移动应用程序.我尝试使用将我的react js应用程序粘贴到Cordova中的www并更改一些配置.但是屏幕变白了.有人可以帮助我进行设置吗,或者需要执行一些步骤才能使其运行.

Can someone help me in setting up configuration to build a Mobile app using reactjs and Cordova. I tried using pasting my react js app to www in Cordova and changing some configuration. But getting white screen. Can someone help me in setting up or some steps need to be followed to get it running.

推荐答案

能否提供更多有关用于开发和构建的设置的详细信息?理想情况下,应该有一个build命令,它将生成一个bundle.jsmain.js或类似的东西.

Can you provide more details as to what setup you are using for development and build? Ideally, there should be a command to build, which will generate a bundle.js or a main.js or something similar.

然后您可以将该文件移动到cordova中的www目录,并从www/index.html链接到该文件以使工作正常.

You can then move this file to the www directory in cordova and link to it from www/index.html to get things working.

这篇关于ReactJS与Cordova的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆