问题
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.
回答1:
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.
You can then move this file to the www
directory in cordova and link to it from www/index.html
to get things working.
来源:https://stackoverflow.com/questions/45120850/reactjs-with-cordova